Auth routes allow you to specify the routes you want to be authenticated and keep the rest public. By default, all routes are authenticated.
For example, you may want to hide a ‘staff-only’ section of your site behind password authentication.
To specify custom authenticated routes for your site:
auth-routes.txtin the root folder
CloudCannon supports wildcards, allowing you to specify child folders or multiple files.
In the following example, visitors will have to log in to access
/internal-news.html and anything inside
/staff. Everything else is public.