YTShortMakerArchx commited on
Commit
7c9ec4d
·
verified ·
1 Parent(s): 7ed8269

Update main.rs

Browse files
Files changed (1) hide show
  1. main.rs +0 -3
main.rs CHANGED
@@ -816,9 +816,6 @@ async fn cancel_job(
816
  State(state): State<AppState>,
817
  Path(job_id): Path<String>,
818
  ) -> impl IntoResponse {
819
- if !validate_app_key(&headers) {
820
- return (StatusCode::FORBIDDEN, Json(serde_json::json!({"error": "Invalid API key"}))).into_response();
821
- }
822
 
823
  let job = state.jobs.lock().get(&job_id).cloned();
824
  let job = match job {
 
816
  State(state): State<AppState>,
817
  Path(job_id): Path<String>,
818
  ) -> impl IntoResponse {
 
 
 
819
 
820
  let job = state.jobs.lock().get(&job_id).cloned();
821
  let job = match job {