allow method HEAD for /

This commit is contained in:
Ben Morrison 2020-05-03 23:57:52 -04:00
parent eb730d1b14
commit 529bfab177
No known key found for this signature in database
GPG Key ID: 8F192E4720BB0DAC
1 changed files with 3 additions and 3 deletions

View File

@ -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")