Skip to content

Commit

Permalink
Remove problematic rate limiter middle for now and add test for api
Browse files Browse the repository at this point in the history
  • Loading branch information
erikreppel committed Apr 20, 2024
1 parent 7a45fc0 commit 95b2b93
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,20 +179,6 @@ pub enum APIResponse {
Success { message: String },
}

pub mod middleware {
use crate::api::AppState;
use axum::extract::{Request, State};
use axum::middleware::Next;
use axum::response::Response;

pub async fn rate_limiter(
State(state): State<AppState>,
request: Request,
next: Next,
) -> Response {
}
}

pub mod admin {
use crate::api::{APIResponse, AppState};
use crate::controller::ControllerCommands;
Expand Down

0 comments on commit 95b2b93

Please sign in to comment.