Spaces:
Runtime error
Runtime error
Commit
·
5b6bb74
1
Parent(s):
c23354a
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ from routes import *
|
|
| 7 |
|
| 8 |
app = Flask(__name__)
|
| 9 |
app.config['JSON_AS_ASCII'] = False
|
| 10 |
-
limiter = Limiter(app, default_limits=["5/minute"]
|
| 11 |
|
| 12 |
#limiter
|
| 13 |
@limiter.request_filter
|
|
@@ -41,11 +41,6 @@ def emptyPath(): return {}
|
|
| 41 |
@app.route('/osu/api/v1/<path:path>', methods=['GET', 'POST'])
|
| 42 |
def emptyApiWA(path): return {"status": "error", "error_code": 100, "error_details": "No method like that found"}
|
| 43 |
|
| 44 |
-
#for dns-query
|
| 45 |
-
@app.route('/dns-query', methods=['GET', 'POST'])
|
| 46 |
-
@limiter.exempt
|
| 47 |
-
def rerouteto(): return make_response("Wrong port! Use 334 port for dns-query.", 400)
|
| 48 |
-
|
| 49 |
#icon
|
| 50 |
@app.route('/favicon.ico')
|
| 51 |
@limiter.exempt
|
|
|
|
| 7 |
|
| 8 |
app = Flask(__name__)
|
| 9 |
app.config['JSON_AS_ASCII'] = False
|
| 10 |
+
limiter = Limiter(app, default_limits=["5/minute"])
|
| 11 |
|
| 12 |
#limiter
|
| 13 |
@limiter.request_filter
|
|
|
|
| 41 |
@app.route('/osu/api/v1/<path:path>', methods=['GET', 'POST'])
|
| 42 |
def emptyApiWA(path): return {"status": "error", "error_code": 100, "error_details": "No method like that found"}
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
#icon
|
| 45 |
@app.route('/favicon.ico')
|
| 46 |
@limiter.exempt
|