Skip to content

cult-of-coders/quantum-iron-routing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Routing

Q('route /', {
    name: 'todo'
    template: 'ToDo'
});
{{# if onRoute 'homepage' }}
    <h1>I am on the homepage</h1>
{{/ if }}

Secure it by roles

Uses the frameworks' service "roles". Q('service roles') Q('route /', { allowedRoles: ['USER', 'ADMIN'] });

Note: the USER role is applied to all logged in users,

About

Iron Router built for Quantum Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published