Skip to content

Commit

Permalink
update routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alino committed Jul 30, 2018
1 parent e69abaf commit e520475
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions config/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ module.exports.routes = {
}
},

'POST /job/:id/submit': // todo -> add tasks and assets as optional parameters
'POST /job/:id/submit':
{
controller: 'JobController',
action: 'create',
Expand Down Expand Up @@ -190,7 +190,7 @@ module.exports.routes = {
}
},

'DELETE /job/:parentid/task/:id': {
'DELETE /asset/:parentid/task/:id': {
controller: 'TaskController',
action: 'destroy',
swagger: {
Expand All @@ -201,7 +201,7 @@ module.exports.routes = {
]
}
},
'GET /job/:parentid/task/:id': {
'GET /asset/:parentid/task/:id': {
controller: 'TaskController',
action: 'findOne',
swagger: {
Expand All @@ -212,7 +212,7 @@ module.exports.routes = {
]
}
},
'PUT /job/:parentid/task/:id': {
'PUT /asset/:parentid/task/:id': {
controller: 'TaskController',
action: 'update',
swagger: {
Expand All @@ -223,7 +223,7 @@ module.exports.routes = {
]
}
},
'GET /job/:parentid/task': {
'GET /asset/:parentid/task': {
controller: 'TaskController',
action: 'find',
swagger: {
Expand All @@ -234,7 +234,7 @@ module.exports.routes = {
]
}
},
'POST /job/:parentid/task': {
'POST /asset/:parentid/task': {
controller: 'TaskController',
action: 'create',
swagger: {
Expand Down Expand Up @@ -297,7 +297,7 @@ module.exports.routes = {
}
}
},
'POST /job/:parentid/task/:id/uploaddeliverable': {
'POST /asset/:parentid/task/:id/uploaddeliverable': {
controller: 'TaskController',
action: 'uploadFile',
swagger: {
Expand All @@ -315,7 +315,7 @@ module.exports.routes = {
}
}
},
'GET /job/:parentid/task/:id/downloaddeliverable': {
'GET /asset/:parentid/task/:id/downloaddeliverable': {
controller: 'TaskController',
action: 'downloadFile',
swagger: {
Expand Down

0 comments on commit e520475

Please sign in to comment.