From b7c6f30f065d25aa1f5a4acb419eedb32faab33a Mon Sep 17 00:00:00 2001 From: surtur Date: Thu, 30 Jul 2020 23:26:57 +0200 Subject: [PATCH] feat: added project files --- .gitignore | 2 ++ app/__init__.py | 0 app/main.py | 12 ++++++++++++ requirements.txt | 2 ++ 4 files changed, 16 insertions(+) create mode 100644 .gitignore create mode 100644 app/__init__.py create mode 100644 app/main.py create mode 100644 requirements.txt 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