feat(panel): add modular landing page builder, public landing page, and hosted launcher downloads

This commit is contained in:
SCOPEDD committed 2026-09-29 02:32:48 -04:00
1 parent 3043f3ab42
commit 4b79f69c20
10 files changed
+1413 -3

No files matched your search

+2
View File
@@ -94,9 +94,11 @@ pub fn app(state: AppState) -> Router {
Router::new()
.route("/healthz", axum::routing::get(routes::public::health))
.route("/download/launcher/{platform}", axum::routing::get(routes::landing::download_launcher))
.merge(routes::api(&state))
.nest_service("/files", ServeDir::new(state.cfg.files_dir()))
.nest_service("/uploads", tower::ServiceBuilder::new().layer(long_cache).service(ServeDir::new(state.cfg.uploads_dir())))
.nest_service("/downloads", ServeDir::new(state.cfg.downloads_dir()))
.fallback_service(spa)
// Lets authlib-injector users enter just the panel URL (API Location Indication).
.layer(SetResponseHeaderLayer::if_not_present(