Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 26715e3

Browse files
committed
Add navigation path for edit event page
1 parent 2d8c5c2 commit 26715e3

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

index.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,16 @@ exports.register = function (server, options, next) {
9090
}
9191
});
9292

93+
server.route({
94+
method: 'GET',
95+
path: '/dashboard/dojos/{dojoId}/events/{eventId}/edit',
96+
handler :{
97+
file: {
98+
path: 'index.html'
99+
}
100+
}
101+
});
102+
93103
server.route({
94104
method: 'GET',
95105
path: '/dashboard/dojos/{dojoId}/join-requests/{id}/status/{status}',
@@ -118,7 +128,7 @@ exports.register = function (server, options, next) {
118128
path: 'index.html'
119129
}
120130
}
121-
});
131+
});
122132

123133
server.route({
124134
method: 'GET',
@@ -128,7 +138,7 @@ exports.register = function (server, options, next) {
128138
path: 'index.html'
129139
}
130140
}
131-
});
141+
});
132142

133143
server.route({
134144
method: 'GET',

src/router/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ const router = new Router({
9292
// TODO: restrict access to ticketing-admin ?
9393
beforeEnter: loggedInNavGuard,
9494
},
95+
{
96+
path: '/dashboard/dojos/:dojoId/events/:eventId/edit',
97+
name: 'EventForm',
98+
component: EventForm,
99+
// TODO: restrict access to ticketing-admin ?
100+
beforeEnter: loggedInNavGuard,
101+
},
95102
{
96103
path: '/dashboard/dojos/:dojoId/join-requests/:requestId/status/:status',
97104
name: 'ManageRequestToJoin',

0 commit comments

Comments
 (0)