fix: fetching of servers and channels by uuid
Co-authored-by: Radical <radical@radical.fun>
This commit is contained in:
parent
67af0c1e74
commit
358a7f8336
2 changed files with 6 additions and 5 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue