mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Added robots.txt
This commit is contained in:
parent
01fe8771bd
commit
5ea7605bbf
@ -118,6 +118,7 @@ def static_image(pth):
|
||||
@webserver.route("/<name:re:.*\\.png>")
|
||||
@webserver.route("/<name:re:.*\\.jpeg>")
|
||||
@webserver.route("/<name:re:.*\\.ico>")
|
||||
@webserver.route("/<name:re:.*\\.txt>")
|
||||
def static(name):
|
||||
response = static_file("website/" + name,root="")
|
||||
response.set_header("Cache-Control", "public, max-age=3600")
|
||||
|
2
website/robots.txt
Normal file
2
website/robots.txt
Normal file
@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Disallow: /api/
|
Loading…
Reference in New Issue
Block a user