mirror of
https://github.com/the1024club/the1024.club.git
synced 2026-01-24 12:20:19 +00:00
allow method HEAD for /
This commit is contained in:
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")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user