Configuration
Global Fetching

Global fetching

You can disable “Global fetching” (GET /api/user) with this configuration:

export default ApiWrapper({
  disableGlobalFetching: {
    user: {
      message: "Not Found",
      statusCode: 404,
    },
  },
})

When requesting /api/user, the response will have a status code of 404 and an error message.