TeamSmil3y / PigeonPost

Python web framework • apparently easy to use
https://docs.pigeon.teamsmiley.org
MIT License
1 stars 0 forks source link

✨🚏 Add dynamic path mapping #27

Closed raspitim closed 1 year ago

raspitim commented 1 year ago

Add dynamic path mapping to pass parameters as part of the path:

@app.view('your/path/{{param1}}/{{param2}}')
def api_view(request, dynamic_params)
    param1 = dynamic_params.param1
    param2 = dynamic_params['param2']
    return f"{param1}, {param2}"