mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-20 14:53:10 -05:00
remove redoc references
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
---
|
||||
title: API
|
||||
template: api.html
|
||||
---
|
||||
@@ -93,7 +93,7 @@ nav:
|
||||
- iOS Shortcut: "documentation/community-guide/ios-shortcut.md"
|
||||
- Reverse Proxy (SWAG): "documentation/community-guide/swag.md"
|
||||
|
||||
- API Reference: "api/redoc.md"
|
||||
- API Reference: "https://demo.mealie.io/docs"
|
||||
|
||||
- Contributors Guide:
|
||||
- Non-Code: "contributors/non-coders.md"
|
||||
|
||||
@@ -219,7 +219,7 @@ export default defineNuxtConfig({
|
||||
},
|
||||
workbox: {
|
||||
navigateFallback: "/",
|
||||
navigateFallbackAllowlist: [/^(?!\/api|\/docs|\/redoc)/],
|
||||
navigateFallbackAllowlist: [/^(?!\/api|\/docs)/],
|
||||
globPatterns: ["**/*.{js,css,html,png,svg,ico}"],
|
||||
globIgnores: ["404.html", "200.html"],
|
||||
cleanupOutdatedCaches: true,
|
||||
|
||||
@@ -102,7 +102,6 @@ app = FastAPI(
|
||||
description=description,
|
||||
version=APP_VERSION,
|
||||
docs_url=settings.DOCS_URL,
|
||||
redoc_url=settings.REDOC_URL,
|
||||
lifespan=lifespan_fn,
|
||||
)
|
||||
|
||||
|
||||
@@ -199,10 +199,6 @@ class AppSettings(AppLoggingSettings):
|
||||
def DOCS_URL(self) -> str | None:
|
||||
return "/docs" if self.API_DOCS else None
|
||||
|
||||
@property
|
||||
def REDOC_URL(self) -> str | None:
|
||||
return "/redoc" if self.API_DOCS else None
|
||||
|
||||
# ===============================================
|
||||
# Database Configuration
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@ def test_non_default_settings(monkeypatch):
|
||||
assert app_settings.API_PORT == 8000
|
||||
assert app_settings.API_DOCS is False
|
||||
|
||||
assert app_settings.REDOC_URL is None
|
||||
assert app_settings.DOCS_URL is None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user