I've read about blueprints in Flask but I think my app is too small to use it yet. However I would like to keep my code clear. Since my app has a user login I would like to keep several functions protected. Now I'm wondering if the following code is as safe as putting all the code into a route or is that not proper coding?
import scriptwithseveralfunctions.py
@app.route('/functionone')
@login_required
def do_something():
scriptwithseveralfunctions.myfunction()