Router allows specifying options for a route.
router.Get("/", index,
opt1,
opt2,
// ...
)
RouteName
is used to generate URLs, checkout URL Generation for details.
RouteMiddleware
is an option that allows plugging middleware into particular route.
router.Post(
"/posts",
createPost,
clevergo.RouteMiddleware(
rateLimiter,
bodyLimiter,
// ...
),
)