mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-06-02 19:43:24 +08:00
697 B
697 B
Files Resource
The Files Resource allows you host static files from your app, such as HTML, browser JavaScript, CSS, images, and videos.
Accessing files
Send a GET request with the filename to load the raw file. This is how browsers request pages and files by default.
GET /files/bg.jpg
Folders
If you prefer to have separate folders for Javascript, CSS, and images, create multiple Static Resources at the paths you want to store the files.
You can also give a Static Resource an empty path /. This will assign it to the root of your app.
Home page
If a Static Resource receives a request without a filename, it will automatically redirect to "index.html" if available.