aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/web/WebModule.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-25 07:54:39 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-25 07:54:39 -0700
commit5a732a26c85785a9b801583f2fff0ce47314aa03 (patch)
tree97eb67d1492e08603c26de14f6b663bfeb2c0406 /src/main/java/org/traccar/web/WebModule.java
parentc60743cfab4e31214207da5dab44fc4426d53764 (diff)
downloadtrackermap-server-5a732a26c85785a9b801583f2fff0ce47314aa03.tar.gz
trackermap-server-5a732a26c85785a9b801583f2fff0ce47314aa03.tar.bz2
trackermap-server-5a732a26c85785a9b801583f2fff0ce47314aa03.zip
Add throttling filter
Diffstat (limited to 'src/main/java/org/traccar/web/WebModule.java')
-rw-r--r--src/main/java/org/traccar/web/WebModule.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/web/WebModule.java b/src/main/java/org/traccar/web/WebModule.java
index 6c133ff74..0722c5d1e 100644
--- a/src/main/java/org/traccar/web/WebModule.java
+++ b/src/main/java/org/traccar/web/WebModule.java
@@ -23,6 +23,7 @@ public class WebModule extends ServletModule {
@Override
protected void configureServlets() {
+ filter("/api/*").through(ThrottlingFilter.class);
filter("/api/media/*").through(MediaFilter.class);
serve("/api/socket").with(AsyncSocketServlet.class);
}