Skip to content

Commit

Permalink
src: server: manager: Fix openapi thumbnail route
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso committed Dec 10, 2024
1 parent ebc00fe commit c42fcd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/server/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ pub async fn run(server_address: &str) -> Result<(), std::io::Error> {
.route("/sdp", web::get().to(pages::sdp))
.route("/log", web::get().to(pages::log))
.service(
web::scope("/thumbnail")
web::scope("")
// Add a rate limitter to prevent flood
.wrap(
RateLimiter::builder(
Expand All @@ -90,7 +90,7 @@ pub async fn run(server_address: &str) -> Result<(), std::io::Error> {
.add_headers()
.build(),
)
.route("", web::get().to(pages::thumbnail)),
.route("thumbnail", web::get().to(pages::thumbnail)),
)
.route("/onvif/devices", web::get().to(pages::onvif_devices))
.route(
Expand Down

0 comments on commit c42fcd6

Please sign in to comment.