diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c37297 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.swp +*pycache* diff --git a/app/__init__.py b/app/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/app/main.py b/app/main.py new file mode 100644 index 0000000..ea8e2d8 --- /dev/null +++ b/app/main.py @@ -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!"} diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..97dc7cd --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +fastapi +uvicorn