daton_app/app/http/routes/home.routes.ts

12 lines
334 B
TypeScript
Raw Normal View History

2020-10-05 16:44:05 +00:00
import { RouterDefinition } from '../../../bundle/daton.ts'
export default {
prefix: '/',
middleware: [],
get: {
'/': 'controller::Home.get_home',
'/maybe': ['middleware::Test', 'controller::Home.get_home'],
'/statics/**': { handler: 'daton::static', arg: 'assets' },
},
} as RouterDefinition