Add root landing page support and package static assets
This commit is contained in:
1 parent
80038fb851
commit
42a2df33dd
5 files changed
+220
-179
No files matched your search
@@ -7,6 +7,8 @@ use axum::{
|
||||
|
||||
pub fn create_router(state: AppState) -> Router {
|
||||
Router::new()
|
||||
// --- Root Landing Page ---
|
||||
.route("/", get(pages::root_landing))
|
||||
// --- Public Redirection Routes ---
|
||||
.route("/:code", get(redirect::resolve_redirect))
|
||||
.route("/p/:code", get(pages::resolve_page))
|
||||
|
||||
Reference in new issue
Block a user