Skip to content

Commit

Permalink
fix: use new Probot getRouter API
Browse files Browse the repository at this point in the history
  • Loading branch information
shaftoe committed Dec 1, 2020
1 parent fea55e1 commit 85c3fb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const { spamCheck, SpamError } = require('./lib/spam-filter')
* This is the main entrypoint of static-comments app
* @param {import('probot').Application} app
*/
module.exports = app => {
const router = app.route('/static-comments')
module.exports = ({ app, getRouter }) => {
const router = getRouter('/static-comments')
router.use(require('express').urlencoded({ extended: true }))

router.post('/new', (req, res) => {
Expand Down

0 comments on commit 85c3fb0

Please sign in to comment.