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
Schultz, Lucian
lab-grpc
Commits
98bd8f9f
Commit
98bd8f9f
authored
Mar 03, 2021
by
Nane Kratzke
Browse files
Fix greeter rest
parent
f86b025a
Changes
1
Show whitespace changes
Inline
Side-by-side
rest/greeter_rest.py
0 → 100644
View file @
98bd8f9f
import
flask
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"
)
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