Files
deployd/docs/files.markdown
2012-04-03 10:56:33 -07:00

19 lines
697 B
Markdown

# 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.