systemprompt_api/routes/sync/mod.rs
1use axum::middleware::from_fn;
2use axum::routing::get;
3use axum::Router;
4use systemprompt_runtime::AppContext;
5
6mod auth;
7mod files;
8mod types;
9
10pub fn router() -> Router<AppContext> {
11 Router::new()
12 .route("/files", get(files::download).post(files::upload))
13 .route("/files/manifest", get(files::manifest))
14 .layer(from_fn(auth::sync_token_middleware))
15}