forked from jmug/stoatchat
make request function names the same as file name
This commit is contained in:
@@ -5,7 +5,7 @@ use revolt_quark::{Db, Ref, Result, EmptyResponse, Error};
|
||||
/// deletes a webhook with a token
|
||||
#[openapi(tag = "Webhooks")]
|
||||
#[delete("/<target>/<token>")]
|
||||
pub async fn req(db: &Db, target: Ref, token: String) -> Result<EmptyResponse> {
|
||||
pub async fn webhook_delete_token(db: &Db, target: Ref, token: String) -> Result<EmptyResponse> {
|
||||
let webhook = target.as_webhook(db).await?;
|
||||
|
||||
(webhook.token.as_deref() == Some(&token))
|
||||
|
||||
Reference in New Issue
Block a user