Skip to content

Commit

Permalink
[fix] disable archetype test for now
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-wyatt committed Dec 19, 2018
1 parent d9846db commit f3a930e
Show file tree
Hide file tree
Showing 5 changed files with 782 additions and 1,766 deletions.
74 changes: 40 additions & 34 deletions lib/config/routes.ts
Original file line number Diff line number Diff line change
@@ -1,50 +1,56 @@
import * as joi from 'joi'
export const routes = {
'/events': {
'GET': 'EventController.findAll',
config: {
prefix: 'events.prefix',
validate: {
query: {
offset: joi.number(),
limit: joi.number(),
where: joi.object(),
sort: joi.array().items(joi.array()),
}
},
app: {
permissions: {
resource_name: 'apiGetEventsRoute',
roles: ['admin']
'GET': {
handler: 'EventController.findAll',
config: {
prefix: 'events.prefix',
validate: {
query: {
offset: joi.number(),
limit: joi.number(),
where: joi.object(),
sort: joi.array().items(joi.array()),
}
},
app: {
permissions: {
resource_name: 'apiGetEventsRoute',
roles: ['admin']
}
}
}
}
},
'/event': {
'POST': 'EventController.create',
config: {
prefix: 'events.prefix',
app: {
permissions: {
resource_name: 'apiPostEventRoute',
roles: ['admin']
'POST': {
handler: 'EventController.create',
config: {
prefix: 'events.prefix',
app: {
permissions: {
resource_name: 'apiPostEventRoute',
roles: ['admin']
}
}
}
}
},
'/event/:id': {
'GET': 'EventController.findOne',
config: {
prefix: 'events.prefix',
validate: {
params: {
id: joi.string().required()
}
},
app: {
permissions: {
resource_name: 'apiGetEventIdRoute',
roles: ['admin']
'GET': {
handler: 'EventController.findOne',
config: {
prefix: 'events.prefix',
validate: {
params: {
id: joi.string().required()
}
},
app: {
permissions: {
resource_name: 'apiGetEventIdRoute',
roles: ['admin']
}
}
}
}
Expand Down
Loading

0 comments on commit f3a930e

Please sign in to comment.