Saltearse al contenido

Create Route

Esta página aún no está disponible en tu idioma.

This guide will help you to quickly start developing a new bot using zumito-framework.

What’s a route?

A route is an a web endpoint to allow users or other programas to interact and retrieve information about your bot.

How can i create a route?

  1. Create new route

    Terminal window
    npx zumito-cli create route
  2. Edit your file

    You will find a method like this:

    execute(req, res) {
    }

    Here you can run your route code. req and res parameters match the Express server params

Quick tips

Next steps

Once the project is configured, you can start creating a module for your bot. Here is a list of things you may want to do: