systemprompt-api 0.2.0

HTTP API server and gateway for systemprompt.io OS
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use axum::Router;
use axum::middleware::from_fn;
use axum::routing::get;
use systemprompt_runtime::AppContext;

mod auth;
mod files;
mod types;

pub fn router() -> Router<AppContext> {
    Router::new()
        .route("/files", get(files::download).post(files::upload))
        .route("/files/manifest", get(files::manifest))
        .layer(from_fn(auth::sync_token_middleware))
}