Skip to content

Commit

Permalink
Add /api/v1/environment/ back in; expand test matrix to v1 and v2
Browse files Browse the repository at this point in the history
  • Loading branch information
peytondmurray committed Jan 22, 2025
1 parent 6caa932 commit f4c3e6f
Show file tree
Hide file tree
Showing 4 changed files with 297 additions and 86 deletions.
9 changes: 5 additions & 4 deletions conda-store-server/conda_store_server/_internal/server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,11 @@ async def http_exception_handler(
)

if self.enable_api:
app.include_router(
views.router_api,
prefix=trim_slash(self.url_prefix),
)
for router_api in views.router_apis:
app.include_router(
router_api,
prefix=trim_slash(self.url_prefix),
)

if self.enable_registry:
# docker registry api specification does not support a url_prefix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

from conda_store_server._internal.server.views.api import router_api # noqa
from conda_store_server._internal.server.views.api import router_api_v1 # noqa
from conda_store_server._internal.server.views.conda_store_ui import ( # noqa
router_conda_store_ui,
)
Expand Down
Loading

0 comments on commit f4c3e6f

Please sign in to comment.