Gabriel Silva
Gabriel Silva

Reputation: 69

MirageJS not finding route - VueJS

We are trying MirageJS in our VueJS application and in a login screen, it makes a request post("auth/signin"). The api url is like http://localhost/v1 and it is configured in Axios instance as baseUrl. The MirageJS server routes has this.namespace="v1" (I tried /v1, /v1/, v1/), and this.post("/auth/signin", cb(schema, request)).

When I make the request I get this error enter image description here

Vue code

enter image description here

Where http is an instance of axios

enter image description here

What could it be?

enter image description here

Upvotes: 0

Views: 1802

Answers (0)

Related Questions