Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Schwieger, Jana
lab-grpc
Commits
9765a618
Commit
9765a618
authored
Apr 18, 2021
by
Schwieger, Jana
Browse files
rest
parent
810add34
Pipeline
#39853
passed with stages
in 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rest/greeter_rest.py
0 → 100644
View file @
9765a618
import
flask
from
flask
import
request
app
=
flask
.
Flask
(
__name__
)
@
app
.
route
(
'/'
,
methods
=
[
'GET'
])
def
home
():
return
f
"Hello!"
@
app
.
route
(
'/hello/<name>'
,
methods
=
[
'GET'
])
def
hello
(
name
):
return
f
"Hello,
{
name
.
strip
()
}
!"
app
.
run
(
host
=
"0.0.0.0"
)
\ No newline at end of file
Write
Preview
Supports
Markdown
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