DEV Community


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

jonyk56 profile image

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

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