DEV Community

loading...

Discussion on: Flask Tutorial - The Interactive way, Ask Me Anything for three hours

Collapse
jonyk56 profile image
Jonyk56

is flask able to have endpoints closed/opened on command?

Collapse
sm0ke profile image
Sm0ke Author • Edited

Can you elaborate, please?
if your Q address something like a dynamic routing based on the input, I think you can manage this in a controller and bypass the classic Flask routing:

@app.route('/whatever.html', methods=['GET', 'POST'])
def whatever():
    ... Routing hacks HERE
Enter fullscreen mode Exit fullscreen mode