feat(openapi): complete upload preview and UI evidence

This commit is contained in:
bsodfather committed 2026-08-28 15:38:14 +03:00
1 parent d2849ea3fe
commit 2c94af6791
35 files changed
+3655 -537

No files matched your search

+6 -1
View File
@@ -4,6 +4,7 @@ use axum::{
middleware,
routing::{delete, get, post},
};
use crank_artifacts::MAX_ARTIFACT_BYTES;
use crate::{
auth::{
@@ -48,7 +49,11 @@ use crate::{
pub fn build_app(state: AppState) -> Router {
let workspace_router = Router::new()
.route("/operations", get(list_operations).post(create_operation))
.route("/imports/openapi/preview", post(preview_openapi_import))
.route(
"/imports/openapi/preview",
post(preview_openapi_import)
.layer(DefaultBodyLimit::max(MAX_ARTIFACT_BYTES + 32 * 1024)),
)
.route(
"/imports/openapi/{job_id}/create",
post(create_openapi_import),