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 databases import Database
|
||||
|
||||
app = Sanic("1k")
|
||||
db = Database("sqlite:///1k.db")
|
||||
app = Sanic('1k')
|
||||
db = Database('sqlite:///1k.db')
|
||||
|
||||
|
||||
@app.route("/")
|
||||
@app.route('/', methods=['GET', 'HEAD'])
|
||||
async def welcome(request):
|
||||
return response.text("Welcome to the1024.club")
|
||||
|
||||
|
|
Loading…
Reference in New Issue