Next, we’ll define routes for the module named userGrid. It will be responsible for working with the data passed to the client model.
UIKernel allows to generate routes if you use Express. So we’re going to generate routes for this module.
Pay attention to the argument passed to model().
It must be an object with the methods described here or function that return model based on request.
The usage of gridExpressApi is optional.
You can define a router by yourself, but it must be able to handle the following requests.