An open API service indexing awesome lists of open source software.

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

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,