scaffold: Backend API routes, DB queries, and middleware stubs
88 handler stubs across 13 route files, 66 DB query stubs across 11 modules, auth/license extractors, and rate limit middleware. All bodies are todo!() — ready for Phase 1b implementation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
43
backend/src/api/wipes.rs
Normal file
43
backend/src/api/wipes.rs
Normal file
@@ -0,0 +1,43 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use axum::{
|
||||
routing::{get, post},
|
||||
Router,
|
||||
};
|
||||
|
||||
use crate::models::error::ApiResult;
|
||||
use crate::AppState;
|
||||
|
||||
pub fn router() -> Router<Arc<AppState>> {
|
||||
Router::new()
|
||||
.route("/{server_id}/trigger", post(trigger_wipe))
|
||||
.route("/{server_id}/dry-run", post(dry_run_wipe))
|
||||
.route("/{wipe_id}/rollback", post(rollback_wipe))
|
||||
.route("/{wipe_id}/status", get(get_wipe_status))
|
||||
.route("/history", get(get_wipe_history))
|
||||
.route("/history/{id}", get(get_wipe_history_detail))
|
||||
}
|
||||
|
||||
async fn trigger_wipe() -> ApiResult<impl axum::response::IntoResponse> {
|
||||
todo!()
|
||||
}
|
||||
|
||||
async fn dry_run_wipe() -> ApiResult<impl axum::response::IntoResponse> {
|
||||
todo!()
|
||||
}
|
||||
|
||||
async fn rollback_wipe() -> ApiResult<impl axum::response::IntoResponse> {
|
||||
todo!()
|
||||
}
|
||||
|
||||
async fn get_wipe_status() -> ApiResult<impl axum::response::IntoResponse> {
|
||||
todo!()
|
||||
}
|
||||
|
||||
async fn get_wipe_history() -> ApiResult<impl axum::response::IntoResponse> {
|
||||
todo!()
|
||||
}
|
||||
|
||||
async fn get_wipe_history_detail() -> ApiResult<impl axum::response::IntoResponse> {
|
||||
todo!()
|
||||
}
|
||||
Reference in New Issue
Block a user