Skip to content

Instantly share code, notes, and snippets.

@sdmdv
Created February 4, 2025 15:54
Show Gist options
  • Save sdmdv/c26687f4d05a8906acdf9b05085391ca to your computer and use it in GitHub Desktop.
Save sdmdv/c26687f4d05a8906acdf9b05085391ca to your computer and use it in GitHub Desktop.
work
from flask import Flask, request
app = Flask(__name__)
@app.route('/greet')
def greet():
name = request.args.get('name', 'Recruto')
message = request.args.get('message', 'Давай дружить!')
return f"Hello {name}! {message}"
if __name__ == '__main__':
app.run(debug = True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment