feat: added project files
This commit is contained in:
parent
ccece4bd8b
commit
b7c6f30f06
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
*.swp
|
||||||
|
*pycache*
|
0
app/__init__.py
Normal file
0
app/__init__.py
Normal file
12
app/main.py
Normal file
12
app/main.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# vim:fileencoding=utf-8:ft=python:foldmethod=marker
|
||||||
|
# statuspage/app/main.py
|
||||||
|
|
||||||
|
from fastapi import FastAPI
|
||||||
|
|
||||||
|
|
||||||
|
app = FastAPI()
|
||||||
|
|
||||||
|
|
||||||
|
@app.get("/api/v1/ping")
|
||||||
|
def pong():
|
||||||
|
return {"ping": "pong!"}
|
2
requirements.txt
Normal file
2
requirements.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
fastapi
|
||||||
|
uvicorn
|
Reference in New Issue
Block a user