Skip to content

Commit

Permalink
Add robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
theyosh committed Aug 5, 2017
1 parent 4d99cbb commit a45ca21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow:
1 change: 1 addition & 0 deletions terrariumWebserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def __routes(self):
self.__app.route('/', method="GET", callback=self.__render_page)
self.__app.route('/<template_name:re:[^/]+\.html$>', method="GET", callback=self.__render_page)

self.__app.route('/<filename:re:robots\.txt>', method="GET", callback=self.__static_file)
self.__app.route('/<root:re:(static|gentelella|webcam)>/<filename:path>', method="GET", callback=self.__static_file)

self.__app.route('/api/switch/toggle/<switchid:path>',
Expand Down

0 comments on commit a45ca21

Please sign in to comment.