Flask-Boost
Flask-Boost copied to clipboard
It's possible to generate sub-actions?
For example, I generate an API controller with boost new controller api
then I tried to generate the action users/me with boost new action api users/me
. The code generated was
@bp.route('/api/users/me')
def users/me():
pass
clearly wrong. So, my question is, how to generate this kind of action? In case of an API I should use another approach, like generate other controllers and somehow put them together?
PS: I know that I can just change def users/me()
to def users_me()
but I'm asking about the right approach for this...
Got it, I will fix this when I have time :)