From 529bfab17786ad1e241eb4ed5f5737b8bb915b84 Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Sun, 3 May 2020 23:57:52 -0400 Subject: [PATCH] allow method HEAD for / --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 916eea2..41cac91 100644 --- a/main.py +++ b/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")