You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
400 B
14 lines
400 B
import {Route, SessionAuthMiddleware, AuthRequiredMiddleware} from '@extollo/lib'
|
|
import {Home} from '../controllers/main/Home.controller'
|
|
|
|
Route.group('/', () => {
|
|
Route.get('/')
|
|
.calls<Home>(Home, home => home.welcome)
|
|
})
|
|
|
|
Route.group('', () => {
|
|
Route.get('/dash')
|
|
.pre(AuthRequiredMiddleware)
|
|
.calls<Home>(Home, home => home.welcome)
|
|
}).pre(SessionAuthMiddleware)
|