Files
deployd/docs/static.markdown
Dallon Feldner 79aa222886 Added docs
2012-03-31 14:54:48 -07:00

23 lines
740 B
Markdown

Static Resource
===============
The Static 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 seperate 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.