@andymitchhank/

GlitchSanic

Python

No description

fork
loading
Files
  • main.py
  • static
  • index.html
main.py
1
2
3
4
5
6
7
8
9
10
11
from sanic import Sanic, response

app = Sanic()
app.static('/static', './static')

@app.route('/')
async def handle_request(request):
    return await response.file('index.html')

if __name__ == "__main__":
  app.run(host='0.0.0.0', port=3000)