support route handler arguments; add daton::static file server

This commit is contained in:
2020-09-05 08:58:34 -05:00
parent 27ee1a552b
commit 601649e699
18 changed files with 231 additions and 32 deletions

View File

@@ -6,5 +6,6 @@ export default {
get: {
'/': 'controller::Home.get_home',
'/maybe': ['middleware::Test', 'controller::Home.get_home'],
'/statics/**': { handler: 'daton::static', arg: 'assets' },
},
} as RouterDefinition