Fix login path

This commit is contained in:
Marko Korhonen 2020-04-09 12:12:34 +03:00
parent c85bb0ef72
commit 7347151c95
No known key found for this signature in database
GPG key ID: 911B85FBC6003FE5

View file

@ -25,7 +25,7 @@ pub async fn register(
.map_err(|e| HttpResponse::InternalServerError().json(e.to_string())) .map_err(|e| HttpResponse::InternalServerError().json(e.to_string()))
} }
#[post("auth/login")] #[post("/auth/login")]
pub async fn login( pub async fn login(
id: Identity, id: Identity,
auth_user: web::Json<AuthUser>, auth_user: web::Json<AuthUser>,