Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Hiboo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ACIDES
Hiboo
Commits
1e3af49d
Verified
Commit
1e3af49d
authored
11 months ago
by
ornanovitch
Browse files
Options
Downloads
Patches
Plain Diff
enh(routes): do not change wording for actions
parent
c4bd8ec6
Branches
refactor-routes-2
No related tags found
1 merge request
!81
Draft: Refactor routes
Pipeline
#30981
failed
11 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hiboo/service/views.py
+5
-5
5 additions, 5 deletions
hiboo/service/views.py
with
5 additions
and
5 deletions
hiboo/service/views.py
+
5
−
5
View file @
1e3af49d
...
...
@@ -14,7 +14,7 @@ def list():
services
=
services
,
application
=
application
)
@blueprint.route
(
"
/creat
ion
"
)
@blueprint.route
(
"
/creat
e
"
)
@security.admin_required
()
def
create_select
():
return
flask
.
render_template
(
...
...
@@ -25,7 +25,7 @@ def create_select():
)
@blueprint.route
(
"
/<application_id>/creat
ion
"
,
methods
=
[
"
GET
"
,
"
POST
"
])
@blueprint.route
(
"
/<application_id>/creat
e
"
,
methods
=
[
"
GET
"
,
"
POST
"
])
@security.admin_required
()
def
create
(
application_id
):
app
=
application
.
registry
.
get
(
application_id
)
or
flask
.
abort
(
404
)
...
...
@@ -43,8 +43,8 @@ def create(application_id):
return
flask
.
render_template
(
"
service_create.html
"
,
application
=
app
,
form
=
form
)
@blueprint.route
(
"
/edit
ion
"
)
@blueprint.route
(
"
/<service_uuid>/edit
ion
"
,
methods
=
[
"
GET
"
,
"
POST
"
])
@blueprint.route
(
"
/edit
"
)
@blueprint.route
(
"
/<service_uuid>/edit
"
,
methods
=
[
"
GET
"
,
"
POST
"
])
@security.admin_required
()
def
edit
(
service_uuid
):
service
=
models
.
Service
.
query
.
get
(
service_uuid
)
or
flask
.
abort
(
404
)
...
...
@@ -67,7 +67,7 @@ def details(service_uuid):
return
flask
.
render_template
(
"
service_details.html
"
,
service
=
service
,
application
=
app
)
@blueprint.route
(
"
/<service_uuid>/delet
ion
"
,
methods
=
[
"
GET
"
,
"
POST
"
])
@blueprint.route
(
"
/<service_uuid>/delet
e
"
,
methods
=
[
"
GET
"
,
"
POST
"
])
@security.admin_required
()
@security.confirmation_required
(
"
delete the service
"
)
def
delete
(
service_uuid
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment