https://github.com/cult-of-coders/quantum-iron-routing
Iron Router built for Quantum Framework
https://github.com/cult-of-coders/quantum-iron-routing
Last synced: about 1 month ago
JSON representation
Iron Router built for Quantum Framework
- Host: GitHub
- URL: https://github.com/cult-of-coders/quantum-iron-routing
- Owner: cult-of-coders
- Created: 2016-04-18T07:48:40.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-16T14:13:38.000Z (almost 9 years ago)
- Last Synced: 2025-01-21T11:23:32.475Z (3 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Routing
=======================
```
Q('route /', {
name: 'todo'
template: 'ToDo'
});
``````
{{# if onRoute 'homepage' }}
I am on the homepage
{{/ 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,