19 lines
420 B
Python
19 lines
420 B
Python
from fastapi import FastAPI
|
|
from pathlib import Path
|
|
from core.router import load_endpoints
|
|
|
|
app = FastAPI(title="API Starter Template")
|
|
|
|
# Load all endpoints
|
|
app.include_router(load_endpoints(Path("endpoints")))
|
|
|
|
@app.get("/")
|
|
def root():
|
|
return {
|
|
"message": "API Server Running",
|
|
"endpoints": {
|
|
"login": "/auth/login (POST)",
|
|
"signup": "/auth/signup (POST)"
|
|
}
|
|
}
|