~lastrosade/getcraft

8d1952ef562391d3815ac26f7c4cecde6269844e — jeremy.shields 5 years ago 3d69c62
Update README.md
1 files changed, 18 insertions(+), 18 deletions(-)

M README.md
M README.md => README.md +18 -18
@@ 14,24 14,24 @@ Routes are in the routes.json file

### Types

    - text, sends res as text
    - file, sends file content
    - directory, sends files contents in directory as json
        ```json
            [
                {
                    "filename": "file1",
                    "content": "CoolFile"
                },
                {
                    "filename": "file2",
                    "content": "Nice content"
                }
            ]
        ```
    - route
        - get, returns the content of the routing array as json
        - refresh, refresh the routes array
- text, sends res as text
- file, sends file content
- directory, sends files contents in directory as json
    ```json
        [
            {
                "filename": "file1",
                "content": "CoolFile"
            },
            {
                "filename": "file2",
                "content": "Nice content"
            }
        ]
    ```
- route
    - get, returns the content of the routing array as json
    - refresh, refresh the routes array

#### optional