mirror of
https://github.com/rommapp/romm.git
synced 2026-12-06 07:54:18 +01:00
Expose swaggerui and redoc endpoints
This commit is contained in:
1 parent
1fa06bb242
commit
b60237693f
2 files changed
+8
-1
No files matched your search
+1
-1
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user