codoo makes it easy for you to generate controller with a simple command.
codoo controller --help
python3 -m codoo controller --help
1. Generate controller¶
codoo controller generate
python3 -m controller generate
This command will ask questions about your new controller.
Note: All questions are mandatory.
| ||The name for your controller|
| ||The name of the addon you created. Click here to create new Addon if you haven't created one yet|
| ||You will be asked if you want routes, click y to accept or n to to continue without routes|
| ||The name of the route|
| ||The route auth public (Default) or user|
| ||The route type http (Default) or json|
You can add as many routes as you want by repeating the preview Add routes step in the table.
A confirmation will apear choose y to continue or n to abort.