Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Release Engineering
Public
distrobuild
Commits
1706a0cb
Commit
1706a0cb
authored
Feb 25, 2021
by
Mustafa Gezen
🏗
Browse files
add imports route to router
parent
cd2b0b16
Changes
1
Hide whitespace changes
Inline
Side-by-side
distrobuild/routes/__init__.py
View file @
1706a0cb
from
fastapi
import
APIRouter
from
distrobuild.routes
import
builds
,
packages
,
bootstrap
from
distrobuild.routes
import
builds
,
imports
,
packages
,
bootstrap
_base_router
=
APIRouter
(
prefix
=
"/api"
)
...
...
@@ -9,5 +9,6 @@ def register_routes(app):
_base_router
.
include_router
(
packages
.
router
)
_base_router
.
include_router
(
bootstrap
.
router
)
_base_router
.
include_router
(
builds
.
router
)
_base_router
.
include_router
(
imports
.
router
)
app
.
include_router
(
_base_router
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment