make request function names the same as file name

This commit is contained in:
Zomatree
2023-04-20 17:52:10 +01:00
parent 312e1dd41f
commit 57f00a283b
9 changed files with 16 additions and 16 deletions

View File

@@ -6,7 +6,7 @@ use rocket::serde::json::Json;
/// gets a webhook with a token
#[openapi(tag = "Webhooks")]
#[get("/<target>/<token>")]
pub async fn req(db: &Db, target: Ref, token: String) -> Result<Json<Webhook>> {
pub async fn webhook_fetch_token(db: &Db, target: Ref, token: String) -> Result<Json<Webhook>> {
let webhook = target.as_webhook(db).await?;
(webhook.token.as_deref() == Some(&token))