diff --git a/application/main.py b/application/main.py index 540022d..2bd0040 100644 --- a/application/main.py +++ b/application/main.py @@ -66,6 +66,17 @@ class PrintAction(BaseModel): # return result +@app.get('/api/first_run') +def first_run(): + try: + with open('.firsttimeruncheck', 'x') as f: + f.write("") + return {"status": "First Run"} + except as e: + print(e) + return {"status": "Not First Run"} + + @app.get("/api/todos/get") def get_todos(date: str = datetime.today().strftime('%Y-%m-%d'), auth_result: str = Security(auth.verify)): """A valid access token is required to access this route"""