feat: add clean errors + completion endpoint
CI / Rust CI (push) Successful in 4m12s

This commit is contained in:
2026-04-10 11:18:20 +02:00
parent fa09e75a09
commit 70fe9bc4da
7 changed files with 115 additions and 6 deletions
+3 -3
View File
@@ -1,12 +1,12 @@
pub mod models;
use crate::auth::middleware::auth_middleware;
use crate::routes::v1::models::list_models;
use crate::state::app_state::AppState;
use axum::{Router, middleware, routing::get};
use axum::{Router, middleware, routing::get, routing::post};
pub fn router() -> Router<AppState> {
Router::new()
.route("/models", get(list_models))
.route("/models", get(models::list_models))
.route("/completions", post(models::completions))
.layer(middleware::from_fn(auth_middleware))
}