add route for robots.txt
This commit is contained in:
parent
cf2fa1f0c0
commit
9669e09448
@ -97,6 +97,14 @@ routes = [
|
|||||||
*raw_file_contents('.' + request.path.path)
|
*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(
|
Route(
|
||||||
lambda request: request.path == '/status',
|
lambda request: request.path == '/status',
|
||||||
[Method.GET],
|
[Method.GET],
|
||||||
|
Loading…
Reference in New Issue
Block a user