remove legacy path without repo name

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-04-02 13:53:40 +02:00
parent 9715e169f0
commit 386d0d138c
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 0 additions and 23 deletions

View File

@ -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',