api: refresh + logout endpoints, update login response

This commit is contained in:
2026-06-11 14:37:09 +02:00
parent 55feaa353f
commit 822f3f9d9c
3 changed files with 57 additions and 1 deletions

View File

@@ -326,6 +326,8 @@ fn api_routes(rate_limit: u64) -> Router<AppState> {
)
.route("/auth/login", routing::post(handlers::auth::login))
.route("/auth/register", routing::post(handlers::auth::register))
.route("/auth/refresh", routing::post(handlers::auth::refresh))
.route("/auth/logout", routing::post(handlers::auth::api_logout))
.route("/diary/export", routing::get(handlers::diary::export_diary))
.route(
"/activity-feed",