Route with int parameter

    0

    0

    Python Flask

    Library: flask

    Shortcut: flask.route.new-with-int-parameter

    @app.route('/post/<int:post_id>')
    def show_post(post_id):
      return f'Post {post_id}'
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.