mirror of
https://gitlab.com/tildes/tildes.git
synced 2026-04-17 14:59:11 +02:00
Revert "Fix redis consumers crashing due to relative path error"
This reverts commit 230f096c3d.
Defer JSON API to v1.102
This commit is contained in:
@@ -16,9 +16,6 @@ from tildes.resources.topic import topic_by_id36
|
||||
from tildes.resources.user import user_by_username
|
||||
|
||||
|
||||
OPENAPI_YAML_FILE = "/opt/tildes/openapi_beta.yaml"
|
||||
|
||||
|
||||
def includeme(config: Configurator) -> None:
|
||||
"""Set up application routes."""
|
||||
config.add_route("home", "/")
|
||||
@@ -133,7 +130,7 @@ def includeme(config: Configurator) -> None:
|
||||
|
||||
# Routes for the JSON API
|
||||
# We also provide a path for the full spec and the built-in swagger UI explorer
|
||||
config.pyramid_openapi3_spec(OPENAPI_YAML_FILE, route="/api/beta/openapi.yaml")
|
||||
config.pyramid_openapi3_spec("openapi_beta.yaml", route="/api/beta/openapi.yaml")
|
||||
config.pyramid_openapi3_add_explorer(route="/api/beta/ui")
|
||||
|
||||
with config.route_prefix_context("/api/beta"):
|
||||
|
||||
Reference in New Issue
Block a user