mirror of https://github.com/JSH32/Backpack.git
Fix routing on info endpoint
This commit is contained in:
parent
98c71265f3
commit
60a6f8b2d2
|
@ -13,10 +13,10 @@ pub mod file;
|
|||
pub mod user;
|
||||
|
||||
pub fn get_routes() -> Scope {
|
||||
web::scope("/").service(info)
|
||||
web::scope("").service(info)
|
||||
}
|
||||
|
||||
#[get("info")]
|
||||
#[get("/info")]
|
||||
async fn info(state: web::Data<State>) -> Response<impl Responder> {
|
||||
let settings = settings::Entity::find_by_id(true)
|
||||
.one(&state.database)
|
||||
|
|
Loading…
Reference in New Issue