Server customization - How to create a Strapi v4 plugin

This article is a continuation of the following content: Add a content-type to a plugin part 3/6


This is a companion discussion topic for the original entry at https://strapi.io/blog/how-to-create-a-strapi-v4-plugin-server-customization-4-6

while I set a route as content-api type, I cannot visit it because of 401 UnauthorizedError, even if I pass the authorization token in the header of the request, Unless I set public in the user permission

How can I visit the API with the content-api type?

Even with auth: false and rebuilding / restarting I get

error: {
  status: 401,
  name: "UnauthorizedError",
  message: "Missing or invalid credentials",
  details: { }
}
}