Fix routing on info endpoint

This commit is contained in:
JSH32 2022-06-07 00:04:04 -06:00
parent 98c71265f3
commit 60a6f8b2d2
1 changed files with 2 additions and 2 deletions

View File

@ -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)