🛠️ Advanced Routing
set(type, path, controller, options)
This is the powerful base method that all other routing methods use internally. You can use it to create routes for any custom type.
type: A string defining the route type (e.g.,page,post,#pagefor authenticated pages, etc.).
// This is equivalent to Odac.Route.post('/register', 'auth.register')
Odac.Route.set('post', '/register', 'auth.register');
// This creates an authenticated page route
Odac.Route.set('#page', '/account', 'account.settings');