feat: add export diary functionality and update API routes

This commit is contained in:
2026-05-09 20:59:30 +02:00
parent 5f9e047ce3
commit f66f8745c7
2 changed files with 43 additions and 7 deletions

View File

@@ -157,7 +157,7 @@ fn api_routes(rate_limit: u64) -> Router<AppState> {
});
Router::new().nest(
"/api",
"/api/v1",
Router::new()
.route("/diary", routing::get(handlers::api::get_diary))
.route(
@@ -175,6 +175,7 @@ fn api_routes(rate_limit: u64) -> Router<AppState> {
)
.route("/auth/login", routing::post(handlers::api::login))
.route("/auth/register", routing::post(handlers::api::register))
.route("/diary/export", routing::get(handlers::api::export_diary))
.route_layer(auth_rate_limit),
)
}