mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-06-05 14:59:38 +08:00
47 lines
1.5 KiB
HTML
47 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Deployd Documentation</title>
|
|
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
|
<link href="css/style.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div class="navbar navbar-fixed-top">
|
|
<div class="navbar-inner">
|
|
<div class="container">
|
|
<span class="brand">
|
|
<a href="index.html"><img src="img/logo-text.png" alt="Deployd"></a>
|
|
</span>
|
|
<ul class="nav">
|
|
<li><a href="collection.html">Collection</a></li>
|
|
<li><a href="usercollection.html">User Collection</a></li>
|
|
<li><a href="static.html">Static</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container"><h1>Static Resource</h1>
|
|
|
|
<p>The Static Resource allows you host static files from your app, such as HTML, browser JavaScript, CSS, images, and videos. </p>
|
|
|
|
<h2>Accessing files</h2>
|
|
|
|
<p>Send a GET request with the filename to load the raw file. This is how browsers request pages and files by default.</p>
|
|
|
|
<pre><code>GET /files/bg.jpg
|
|
</code></pre>
|
|
|
|
<h2>Folders</h2>
|
|
|
|
<p>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.</p>
|
|
|
|
<p>You can also give a Static Resource an empty path ("/"). This will assign it to the root of your app.</p>
|
|
|
|
<h2>Home page</h2>
|
|
|
|
<p>If a Static Resource receives a request without a filename, it will automatically redirect to "index.html" if available.</p>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |