add route for robots.txt

This commit is contained in:
gnat 2024-11-03 01:54:13 -08:00
parent cf2fa1f0c0
commit 9669e09448

View File

@ -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],