diff --git a/src/api/v0/mod.rs b/src/api/v0/mod.rs index 310de36..99d2ab9 100644 --- a/src/api/v0/mod.rs +++ b/src/api/v0/mod.rs @@ -4,7 +4,7 @@ mod channel; mod send; pub fn web() -> Scope { - web::scope("/v1") + web::scope("/v0") .service(channel::res) .service(send::res) } diff --git a/src/api/v0/send.rs b/src/api/v0/send.rs index 640700f..ea5e353 100644 --- a/src/api/v0/send.rs +++ b/src/api/v0/send.rs @@ -15,7 +15,7 @@ struct Request { const MAX_SIZE: usize = 262_144; -#[post("/channel")] +#[post("/send")] pub async fn res( mut payload: web::Payload, data: web::Data,