You will often create resourceful routes to do CRUD operations on a resource.
routes.resource
assigns CRUD routes to a controller using a single line of code:
// app/routes/index.ts
// This...
routes.resource("users", "UserController");
// ...equates to this:
routes.get("users", UserController.index);
routes.get("users/details/:id", UserController.show);
routes.get("users/create", UserController.create);
routes.post("users", UserController.store);
routes.get("users/edit/:id", UserController.edit);
routes.put("users/:id", UserController.update);
routes.delete("users/:id", UserController.destroy);
To read about route middlewares: Middlewares.