feat: registration settings

This commit is contained in:
Per Stark
2025-01-27 22:16:17 +01:00
parent f329987818
commit c6bc0c44f3
6 changed files with 87 additions and 7 deletions

View File

@@ -28,7 +28,7 @@ use zettle_db::{
},
html::{
account::{delete_account, set_api_key, show_account_page, update_timezone},
admin_panel::show_admin_panel,
admin_panel::{show_admin_panel, toggle_registration_status},
documentation::index::show_documentation_index,
gdpr::{accept_gdpr, deny_gdpr},
index::index_handler,
@@ -172,6 +172,7 @@ fn html_routes(
.route("/queue/:delivery_tag", delete(delete_task))
.route("/account", get(show_account_page))
.route("/admin", get(show_admin_panel))
.route("/toggle-registrations", patch(toggle_registration_status))
.route("/set-api-key", post(set_api_key))
.route("/update-timezone", patch(update_timezone))
.route("/delete-account", delete(delete_account))