Async route Problem

I defined this async route in routes.js

},

// Async

{

  path: '/ouvidoria/',

  

  async: function (routeTo, routeFrom, resolve, reject) {

    // Requested route

    console.log(routeTo);

    // Get external data and return template7 template

    this.app.request.json('https:*******************************l', function (data) {

      resolve(

        // How and what to load: template

        {

            componentUrl: './pages/ouvidoria.f7.html',   

        },

        // Custom template context

        {

          context: {

            chamadosAbertosOuvidoria: data,

          },

        }

      );

    });

  }

},

but, when i call the route, the following error appears:

I’am trying to get componentUrl with import, but without sucess, the project folder used is default.

У тебя запрос завершается с ошибкой, 404 статус, это следующий callback в app.request.json, который у тебя не обрабатывается, смотри документацию: https://framework7.io/docs/request.html#json