Web service adonis

I have an application developed in the laravel, and I want every certain actions to call adonis routes by means of an api rest, how can I make this connection, at this moment I know how to make rest requests from laravel, but how should I receive that request from adonis , Thank you

Build a controller/endpoint in Adonis that responds with JSON encoded data instead of rendering a view and call that endpoint from Laravel using a HTTP request.

Have I misunderstood?

Should I disable the token in adonis to be able to work with these requests from another project?

You mean csrf token?

This should not be used for API routes. =)

1 Like

As @McSneaky asks what type of token are we talking about? An Auth token CSRF token or a.n.other?