fix: fetching of servers and channels by uuid

Co-authored-by: Radical <radical@radical.fun>
This commit is contained in:
SauceyRed 2025-05-07 19:01:10 +02:00
parent 67af0c1e74
commit 358a7f8336
Signed by: sauceyred
GPG key ID: 270B096EF6E9A462
2 changed files with 6 additions and 5 deletions

View file

@ -30,12 +30,13 @@ struct Role {
}
pub fn web() -> Scope {
web::scope("/")
.service(res)
web::scope("")
.service(channels::response)
.service(res)
}
#[get("{uuid}")]
#[get("/{uuid}")]
pub async fn res(req: HttpRequest, path: web::Path<(Uuid,)>, data: web::Data<Data>) -> Result<HttpResponse, Error> {
let headers = req.headers();