From 7347151c95947d3d8a9f3113448c0a906c3ea8af Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Thu, 9 Apr 2020 12:12:34 +0300 Subject: [PATCH] Fix login path --- project/src/handlers/authentication.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/handlers/authentication.rs b/project/src/handlers/authentication.rs index 3f2c48d..520b918 100644 --- a/project/src/handlers/authentication.rs +++ b/project/src/handlers/authentication.rs @@ -25,7 +25,7 @@ pub async fn register( .map_err(|e| HttpResponse::InternalServerError().json(e.to_string())) } -#[post("auth/login")] +#[post("/auth/login")] pub async fn login( id: Identity, auth_user: web::Json,