allow method HEAD for /
This commit is contained in:
parent
eb730d1b14
commit
529bfab177
6
main.py
6
main.py
|
@ -5,11 +5,11 @@ import asyncio
|
||||||
from sanic import Sanic, response
|
from sanic import Sanic, response
|
||||||
from databases import Database
|
from databases import Database
|
||||||
|
|
||||||
app = Sanic("1k")
|
app = Sanic('1k')
|
||||||
db = Database("sqlite:///1k.db")
|
db = Database('sqlite:///1k.db')
|
||||||
|
|
||||||
|
|
||||||
@app.route("/")
|
@app.route('/', methods=['GET', 'HEAD'])
|
||||||
async def welcome(request):
|
async def welcome(request):
|
||||||
return response.text("Welcome to the1024.club")
|
return response.text("Welcome to the1024.club")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue