feat: adding openapi spect generation to the frontend client aas well as to fast api. Broke API out into different routes

This commit is contained in:
lucas.oskorep
2023-07-17 02:07:41 -04:00
parent add28cafc6
commit 4a20152ff5
45 changed files with 3379 additions and 206 deletions

12
mta_sign_server/router.py Normal file
View File

@@ -0,0 +1,12 @@
from datetime import datetime
from fastapi import APIRouter, status
router = APIRouter(
tags=["start"],
)
start_time = datetime.now()
@router.post("/api/start_time", status_code=status.HTTP_200_OK)
def get_start_time():
return start_time.isoformat()