See the public assets concepts for details.
Because an API may need to serve static assets, every new Strapi project includes by default, a folder named
/public. Any file located in this directory is accessible if the request's path doesn't match any other defined route and if it matches a public file name.
An image named
./public/ is accessible through
index.html files are served if the request corresponds to a folder name (
/pictures url will try to serve
The dotfiles are not exposed. It means that every files with the names start by
. such as
.gitignore are not served.
Refer to the public assets configurations for more informations.