mirror of
https://github.com/rommapp/romm.git
synced 2026-12-05 23:44:11 +01:00
Expose swaggerui and redoc endpoints
This commit is contained in:
@@ -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