remove legacy path without repo name
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
9715e169f0
commit
386d0d138c
23
src/app.js
23
src/app.js
|
@ -24,29 +24,6 @@ const App = ({ghc, schema}) => {
|
|||
ctx.body = 'OK'
|
||||
})
|
||||
|
||||
/* TEMPORARY fix to keep backwards compatibility */
|
||||
router.route({
|
||||
method: 'post',
|
||||
path: '/builds/:pr',
|
||||
validate: {
|
||||
type: 'json',
|
||||
body: schema,
|
||||
},
|
||||
handler: async (ctx) => {
|
||||
await ghc.db.addBuild({
|
||||
repo: 'status-react',
|
||||
pr: ctx.params.pr,
|
||||
build: ctx.request.body,
|
||||
})
|
||||
await ghc.update({
|
||||
repo: 'status-react',
|
||||
pr: ctx.params.pr,
|
||||
})
|
||||
ctx.status = 201
|
||||
ctx.body = {status:'ok'}
|
||||
}
|
||||
})
|
||||
|
||||
/* store build and post/update the comment */
|
||||
router.route({
|
||||
method: 'post',
|
||||
|
|
Loading…
Reference in New Issue