Expose swaggerui and redoc endpoints

This commit is contained in:
Georges-Antoine Assi
2023-08-18 23:39:16 -04:00
parent 1fa06bb242
commit b60237693f
2 changed files with 8 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ from utils.auth import (
create_default_admin_user,
)
app = FastAPI()
app = FastAPI(title="RomM API", version="0.1.0")
app.add_middleware(
CORSMiddleware,

View File

@@ -42,6 +42,13 @@ http {
proxy_redirect off;
}
location /docs {
proxy_pass http://localhost:5000/docs;
}
location /redoc {
proxy_pass http://localhost:5000/redoc;
}
# Backend api calls
location /api {
rewrite /api/(.*) /$1 break;