API REST

How the API Works

The REST API service is started after the bot receives the ready event.

Example of api/routes/hello.js
/*
    Type: GET
    Do not delete this section
*/

module.exports = (req, res) => {

    return res.status(200).send("Hello World!")
}

It is important that you keep the comment above where the type of request that route accepts is indicated. If you do not want to filter the type of requests, you can set Type: ALL

Last updated