blob: ac38c9a1c34d34bc601dd754700a9eb33fd7019a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  | 
const express = require('express')
const router = express.Router()
router.all('/', function (req, res, next) {
  res.json({
    "response_type": "in_channel",
    "text": "Here is the schedule of _18561_",
    "mrkdwn": true,
    "attachments": [
      {
        "fallback": `https://beta.rooster.hetmml.nl/s/${req.body.text}`,
        "image_url": `https://beta.rooster.hetmml.nl/get/s/${req.body.text}.png`
      }
    ]
  })
})
module.exports = router
 
  |