Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hydws
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
damb
hydws
Commits
35445ea0
Commit
35445ea0
authored
5 years ago
by
damb
Browse files
Options
Downloads
Patches
Plain Diff
[ENH] Use path prefix
parent
a451b6cc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hydws/server/__init__.py
+3
-1
3 additions, 1 deletion
hydws/server/__init__.py
hydws/server/settings.py
+1
-0
1 addition, 0 deletions
hydws/server/settings.py
with
4 additions
and
1 deletion
hydws/server/__init__.py
+
3
−
1
View file @
35445ea0
...
...
@@ -32,7 +32,9 @@ def create_app(config_dict={}):
from
hydws.server.v1
import
blueprint
as
api_v1_bp
,
API_VERSION_V1
app
.
register_blueprint
(
api_v1_bp
,
url_prefix
=
'
/v{version}
'
.
format
(
version
=
API_VERSION_V1
))
url_prefix
=
'
{prefix}/v{version}
'
.
format
(
prefix
=
settings
.
HYDWS_PATH_BASE
,
version
=
API_VERSION_V1
))
@app.before_request
def
before_request
():
...
...
This diff is collapsed.
Click to expand it.
hydws/server/settings.py
+
1
−
0
View file @
35445ea0
...
...
@@ -10,6 +10,7 @@ HYDWS_DEFAULT_SERVER_PORT = 5000
# ----------------------------------------------------------------------------
# service specific configuration parameters
HYDWS_PATH_BASE
=
'
/hydws
'
HYDWS_PATH_BOREHOLES
=
'
/boreholes
'
HYDWS_PATH_SECTIONS
=
'
/sections
'
HYDWS_PATH_HYDRAULICS
=
'
/hydraulics
'
...
...
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