Skip to content

Commit

Permalink
Disable upload route
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakycrow committed Dec 24, 2024
1 parent 99d488f commit e6c911b
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions services/silo-api/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,16 @@ async fn main() {
middleware::auth::auth_middleware,
)),
)
.route(
"/upload",
post(routes::upload::upload_video)
.layer(DefaultBodyLimit::max(UPLOAD_CHUNK_SIZE * 8))
.layer(axum_mw::from_fn_with_state(
state.clone(),
middleware::auth::auth_middleware,
)),
)
// TODO: Update this to use Backblaze instead
// .route(
// "/upload",
// post(routes::upload::upload_video)
// .layer(DefaultBodyLimit::max(UPLOAD_CHUNK_SIZE * 8))
// .layer(axum_mw::from_fn_with_state(
// state.clone(),
// middleware::auth::auth_middleware,
// )),
// )
.nest(
"/video",
Router::new()
Expand Down

0 comments on commit e6c911b

Please sign in to comment.