Update README.md

This commit is contained in:
mtrx 2020-11-21 21:33:05 +01:00 committed by GitHub
parent ff178b4984
commit 3dab5f4ab0
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,3 +28,16 @@ BIND_PORT=8000
ROOT_PATH=/path/to/template/directory/and/sqliteDB
SUBMIT_TOKEN=Submit!123 # token needed for submitting
```
## Routes
- / site welcome
- /blog shows the last 5 posts
- /blog/id/<id> shows a single post by id
- /blog/all shows all posts
- /blog/submit set your submit token and create posts
- /blog/edit/<id> edit, delete or hide posts
**API Routes**
- /api/blog/posts returns all posts as json