-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
41 lines (28 loc) · 1.04 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
~ page structure .~
templates/
<name>_data.json JSON data template, used when creating a new pages
<name>_view.mustache Mustache template for viewing
<name>_edit.mustache Mustache template for editing
pages/
<page_name>.json All of the pages, in JSON
public/ The document root, containing all public assets
index.php PHP Single Entrance Point
<name>_view.css CSS for the template
public/images/
<name>_<chksum>.png Each image uploaded is held here
config.php Where we keep the icky PHP stuff
routes.php URL routing a'la Slim
lib/ All of the PHP functions
~ url routes .~
GET /pages
POST /pages
GET /pages/:name
POST /pages/:name
DELETE /pages/:name
GET /templates
POST /templates
GET /templates/:name
POST /templates/:name
DELETE /templates/:name
GET /
GET /:name