diff --git a/src/lib/router.py b/src/lib/router.py index 88eba96..557692d 100644 --- a/src/lib/router.py +++ b/src/lib/router.py @@ -97,6 +97,14 @@ routes = [ *raw_file_contents('.' + request.path.path) ) ), + Route( + lambda request: request.path == '/robots.txt', + [Method.GET], + lambda *_: Response( + ResponseCode.OK, + *raw_file_contents('./robots.txt') + ) + ), Route( lambda request: request.path == '/status', [Method.GET],