Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mason-today-web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
8
Issues
8
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
mason-today-web
Commits
22120e5f
Commit
22120e5f
authored
Apr 25, 2018
by
Landon DeCoito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API JSON hosting is now routed to /api/getconnected or /api/25live
parent
f6c6a179
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mason-today/app.py
mason-today/app.py
+2
-2
No files found.
mason-today/app.py
View file @
22120e5f
...
...
@@ -6,13 +6,13 @@ import json
app
=
Flask
(
__name__
)
@
app
.
route
(
"/
25L
ive"
)
@
app
.
route
(
"/
api/25l
ive"
)
def
display_data
():
resp
=
Response
(
json
.
dumps
(
load_data
(),
ensure_ascii
=
False
).
encode
(
'utf-8'
))
resp
.
headers
[
'Content-Type'
]
=
'application/json; charset=utf-8'
return
resp
@
app
.
route
(
"/
getconn
"
)
@
app
.
route
(
"/
api/getconnected
"
)
def
display_GC_data
():
resp
=
Response
(
json
.
dumps
(
load_getconn_data
(),
ensure_ascii
=
False
).
encode
(
'utf-8'
))
resp
.
headers
[
'Content-Type'
]
=
'application/json; charset=utf-8'
...
...
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