Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
numpy_api
Project
Project
Details
Activity
Releases
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
service
numpy_api
Commits
7b1f3ffb
Commit
7b1f3ffb
authored
Nov 19, 2021
by
龚子荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c6d472a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
main.py
main.py
+11
-2
No files found.
main.py
View file @
7b1f3ffb
...
...
@@ -5,11 +5,20 @@
import
numpy
from
flask
import
Flask
import
time
app
=
Flask
(
__name__
)
@
app
.
route
(
"/<_x>/<_y>"
)
@
app
.
route
(
"/api"
)
def
hello_world
(
_x
,
_y
):
return
{
"app"
:
"numpy_api"
,
"timestamp"
:
time
.
time
()
}
@
app
.
route
(
"/api/<_x>/<_y>"
)
def
hello_world
(
_x
,
_y
):
_sx
=
_x
.
split
(
","
)
_sy
=
_y
.
split
(
","
)
...
...
@@ -33,4 +42,4 @@ def hello_world(_x, _y):
if
__name__
==
'__main__'
:
app
.
run
(
host
=
"0.0.0.0"
,
port
=
5000
)
app
.
run
(
host
=
"0.0.0.0"
,
port
=
5000
)
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