support route handler arguments; add daton::static file server
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user