mirror of
https://github.com/chubin/wttr.in
synced 2024-12-26 03:33:12 +00:00
added /malformed-response.html route
This commit is contained in:
parent
c7c0430699
commit
bcdd09c768
1 changed files with 4 additions and 0 deletions
|
@ -225,6 +225,10 @@ def send_static(path):
|
|||
def send_favicon():
|
||||
return send_from_directory(STATIC, 'favicon.ico')
|
||||
|
||||
@app.route('/malformed-response.html')
|
||||
def send_malformed():
|
||||
return send_from_directory(STATIC, 'malformed-response.html')
|
||||
|
||||
@app.route("/")
|
||||
@app.route("/<string:location>")
|
||||
def wttr(location = None):
|
||||
|
|
Loading…
Reference in a new issue