Add basic team routes

This commit is contained in:
2020-11-01 13:55:33 -06:00
parent 2d2f335b9c
commit 127a738e85

View File

@@ -51,6 +51,10 @@ const index = {
// Placeholder for auth dashboard. You'd replace this with
// your own route protected by 'middleware::auth:UserOnly'
'/dash': [ 'controller::Home.welcome' ],
'/api/list-all-teams': [
'controller::Teams.list_all_teams'
],
},
/*
@@ -61,7 +65,9 @@ const index = {
* or middleware that are applied in order.
*/
post: {
'/api/create-team': [
'controller::Teams.create_team'
],
},
// You can include other HTTP verbs here.