Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
luna
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
luna
Commits
3cd172fb
Commit
3cd172fb
authored
Mar 28, 2017
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update bug
parent
2d40fd57
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
__init__.py
luna/views/__init__.py
+3
-0
views.py
luna/views/views.py
+4
-4
No files found.
luna/views/__init__.py
View file @
3cd172fb
from
.views
import
*
from
.websocket
import
*
__version__
=
'0.0.1'
luna/views/views.py
View file @
3cd172fb
...
...
@@ -2,9 +2,11 @@
import
os
from
.
import
__version__
from
..
import
app
from
..authentication
import
login_required
from
flask
import
render_template
,
send_from_directory
,
make_response
,
jsonify
from
flask
import
render_template
,
send_from_directory
,
make_response
,
\
jsonify
,
request
,
g
import
json
...
...
@@ -33,9 +35,7 @@ def send_dist(path):
@app.route
(
'/api/version'
)
def
version
():
with
open
(
os
.
path
.
join
(
API_MOCK_DIR
,
'version'
))
as
f
:
response
=
json
.
load
(
f
)
return
jsonify
(
response
)
return
jsonify
(
__version__
)
@app.route
(
'/api/nav'
)
...
...
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