Isomorphic Hooks
useRoutes
Retrieve all routes available in the application.
Client / Server
Usage
Retrieve an object containing all routes available in the application.
import { useRoutes } from '@microeinhundert/radonis'
const routes = useRoutes()
console.log(routes) // => `{ 'AuthController.signIn': '/signIn', ... }`