From 95b2b93ac52c43fa9290e0d781f15ba187851f5c Mon Sep 17 00:00:00 2001 From: Erik Reppel Date: Sat, 20 Apr 2024 10:22:03 -0400 Subject: [PATCH] Remove problematic rate limiter middle for now and add test for api --- src/api.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/api.rs b/src/api.rs index 8a140a3..32bf72d 100644 --- a/src/api.rs +++ b/src/api.rs @@ -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, - request: Request, - next: Next, - ) -> Response { - } -} - pub mod admin { use crate::api::{APIResponse, AppState}; use crate::controller::ControllerCommands;