3 Commits

Author SHA1 Message Date
277ff32b5d Changed rate limits 2022-05-15 23:34:19 +02:00
4a1b881d7b Merge branch 'master' of ssh://git.n07070.xyz:1968/n07070/littleprynter 2022-05-14 00:09:59 +02:00
ef6db806da Added a picture of the result 2022-05-14 00:08:44 +02:00
2 changed files with 3 additions and 3 deletions

View File

@@ -69,7 +69,7 @@ Voilà !
![](src/static/images/photomaton.png)
> Using the webcam via Javascript, you can print out a picture from your phone, webcam, or any other video device.
![](src/static/images/result.png)
![](src/static/images/result.jpg)
## More

View File

@@ -96,7 +96,7 @@ def api_index():
@app.route('/api/print/sms', methods=['POST'])
@limiter.limit("2/minute", override_defaults=False)
@limiter.limit("6/minute", override_defaults=False)
def api_print_sms():
app.logger.debug("Printing an sms")
try:
@@ -114,7 +114,7 @@ def api_print_sms():
return redirect(url_for('index'))
@app.route('/api/print/img', methods=['POST'])
@limiter.limit("2/minute", override_defaults=False)
@limiter.limit("6/minute", override_defaults=False)
def api_print_image():
app.logger.debug("Printing an image")