forked from yaso_meth/mih-project
v1 upload
First upload of project files
This commit is contained in:
20
backend/main.py
Normal file
20
backend/main.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from fastapi import FastAPI, HTTPException
|
||||
from pydantic import BaseModel
|
||||
from .routers import docOffices, patients, patients_files, patients_notes
|
||||
|
||||
app = FastAPI()
|
||||
app.include_router(docOffices.router)
|
||||
app.include_router(patients.router)
|
||||
app.include_router(patients_files.router)
|
||||
app.include_router(patients_notes.router)
|
||||
|
||||
# Check if server is up
|
||||
@app.get("/")
|
||||
def read_root():
|
||||
return serverRunning()
|
||||
|
||||
|
||||
def serverRunning():
|
||||
return {"Status": "Server is Up and Running"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user