Flask-Boost icon indicating copy to clipboard operation
Flask-Boost copied to clipboard

It's possible to generate sub-actions?

Open Itisfilipe opened this issue 8 years ago • 1 comments

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...

Itisfilipe avatar May 04 '16 12:05 Itisfilipe

Got it, I will fix this when I have time :)

hustlzp avatar May 11 '16 03:05 hustlzp