Controllers
Controllers are groupings of related routes that handle specific parts of your application's functionality.
Creating Controllers
To create a controller, open a Vast workspace and click on the plus icon next to an application or library in the left-hand Explorer window and select New Controller...:
In the dialog that appears, enter a name for your controller and click Save.
The name you assign to a controller will form part of the URL path for the routes it contains. For example, all routes inside a controller named products
will be prefixed with /products
.
Renaming Controllers
To rename a controller, click the ellipsis icon next to the controller in the Explorer and select Rename:
Enter the new name and click Save.
You can also rename a controller by clicking on the title and typing a new name:
Deleting Controllers
A controller can be deleted by hovering over it in the Explorer, clicking the ellipsis icon and selecting Delete.