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
cd2b0b16
Commit
cd2b0b16
authored
Feb 25, 2021
by
Mustafa Gezen
🏗
Browse files
use consistent naming for route files
parent
79b78c25
Changes
3
Hide whitespace changes
Inline
Side-by-side
distrobuild/routes/__init__.py
View file @
cd2b0b16
from
fastapi
import
APIRouter
from
distrobuild.routes
import
build
,
packages
,
bootstrap
from
distrobuild.routes
import
build
s
,
packages
,
bootstrap
_base_router
=
APIRouter
(
prefix
=
"/api"
)
...
...
@@ -8,6 +8,6 @@ _base_router = APIRouter(prefix="/api")
def
register_routes
(
app
):
_base_router
.
include_router
(
packages
.
router
)
_base_router
.
include_router
(
bootstrap
.
router
)
_base_router
.
include_router
(
build
.
router
)
_base_router
.
include_router
(
build
s
.
router
)
app
.
include_router
(
_base_router
)
distrobuild/routes/build.py
→
distrobuild/routes/build
s
.py
View file @
cd2b0b16
File moved
distrobuild/routes/import.py
→
distrobuild/routes/import
s
.py
View file @
cd2b0b16
File moved
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