feat(panel): add modular landing page builder, public landing page, and hosted launcher downloads
This commit is contained in:
1 parent
3043f3ab42
commit
4b79f69c20
10 files changed
+1413
-3
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user