Expose swaggerui and redoc endpoints

This commit is contained in:
Georges-Antoine Assi committed 2023-08-18 23:40:18 -04:00
1 parent 1fa06bb242
commit b60237693f
2 files changed
+8 -1

No files matched your search

+1 -1
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,
+7
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;