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

@@ -21,7 +21,7 @@ pub struct WebhookData {
/// gets a webhook
#[openapi(tag = "Webhooks")]
#[get("/<target>")]
pub async fn req(db: &Db, target: Ref) -> Result<Json<WebhookData>> {
pub async fn webhook_fetch(db: &Db, target: Ref) -> Result<Json<WebhookData>> {
let Webhook { id, name, avatar, channel, .. } = target.as_webhook(db).await?;
Ok(Json(WebhookData { id, name, avatar, channel }))