Skip to content

Commit a45ca21

Browse files
committed
Add robots.txt
1 parent 4d99cbb commit a45ca21

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

static/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Disallow:

terrariumWebserver.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def __routes(self):
6363
self.__app.route('/', method="GET", callback=self.__render_page)
6464
self.__app.route('/<template_name:re:[^/]+\.html$>', method="GET", callback=self.__render_page)
6565

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

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

0 commit comments

Comments
 (0)