Multi-printers #32
+3
-3
@@ -136,7 +136,7 @@ app.logger.info("🖶 Welcome to LittlePrynter !")
|
|||||||
|
|
||||||
# General routes
|
# General routes
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
@limiter.limit("2/second", override_defaults=False)
|
@limiter.limit("5/second", override_defaults=False)
|
||||||
def index():
|
def index():
|
||||||
"""Return the web interface index"""
|
"""Return the web interface index"""
|
||||||
app.logger.debug("Loading index")
|
app.logger.debug("Loading index")
|
||||||
@@ -144,7 +144,7 @@ def index():
|
|||||||
|
|
||||||
|
|
||||||
@app.route("/webcam")
|
@app.route("/webcam")
|
||||||
@limiter.limit("2/second", override_defaults=False)
|
@limiter.limit("5/second", override_defaults=False)
|
||||||
def webcam():
|
def webcam():
|
||||||
"""Returns the webcam web interface"""
|
"""Returns the webcam web interface"""
|
||||||
app.logger.debug("Loading webcam interface")
|
app.logger.debug("Loading webcam interface")
|
||||||
@@ -152,7 +152,7 @@ def webcam():
|
|||||||
|
|
||||||
# General routes
|
# General routes
|
||||||
@app.route("/queue")
|
@app.route("/queue")
|
||||||
@limiter.limit("3/second", override_defaults=False)
|
@limiter.limit("5/second", override_defaults=False)
|
||||||
def queue():
|
def queue():
|
||||||
"""Return the web interface index"""
|
"""Return the web interface index"""
|
||||||
app.logger.debug("Loading queue")
|
app.logger.debug("Loading queue")
|
||||||
|
|||||||
Reference in new issue
Block a user