From 43ad74181425cadcba5f592b51d72fdc08dc869c Mon Sep 17 00:00:00 2001 From: Aurelsicoko Date: Wed, 11 Oct 2017 14:41:48 +0200 Subject: [PATCH] Rewrite public assets concept --- docs/3.x.x/en/concepts/concepts.md | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/docs/3.x.x/en/concepts/concepts.md b/docs/3.x.x/en/concepts/concepts.md index e3efa87ba9..b1398b0afc 100644 --- a/docs/3.x.x/en/concepts/concepts.md +++ b/docs/3.x.x/en/concepts/concepts.md @@ -213,16 +213,7 @@ Plugin policies are usable from any app API. ## Public Assets -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. - -#### Example - -An image named `company-logo.png` in `./public/` is accessible through `/company-logo.png` URL. - -> Note: `index.html` files are served if the request corresponds to a folder name (`/pictures` url will try to serve `./public/pictures/index.html` file). - -> Note bis: The dotfiles are not exposed. It means that every files with the names start by `.` such as `.htaccess` or `.gitignore` are not served. - +Public assets are static files such as images, video, css, etc that you want to make accessible to the outside world. Every new project includes by default, a folder named `./public`. > Refers to the [public configuration](../configurations/configurations.md#Application) for more informations.