http (auth): change `/whoami` to GET

This commit is contained in:
MedzikUser 2022-04-24 20:52:17 +02:00
parent b2a4b84f6d
commit 1c1074abaf
No known key found for this signature in database
GPG Key ID: A5FAC1E185C112DB
1 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
use axum::routing::get;
pub mod login;
pub mod register;
pub mod whoami;
@ -8,5 +10,5 @@ pub fn app() -> axum::Router {
axum::Router::new()
.route("/login", post(login::handle))
.route("/register", post(register::handle))
.route("/whoami", post(whoami::handle))
.route("/whoami", get(whoami::handle))
}