I would like to use Drupal as a decoupled system, sourcing its content by using Gatsby. Having set it all up, I would like my Drupal nodes not to be accessed by random unauthenticated users so I removed the permission from 'View Content'.
Having done that now I can't access the content by my Front end service which uses JSON API (unauthenticated of course).
What's the method to remove the node pages from the site and leave only the admin backend, while allowing to access the content using JSON API ?