Bumped to 0.3.0. Switched /blog routes to / prefix and moved preevious / route to /about. Changed some env var loading code.

This commit is contained in:
Leonard Lorenz 2021-04-03 23:26:10 +02:00
parent 5c1c0de1b1
commit accbdb6f7a
11 changed files with 167 additions and 77 deletions

View file

@ -44,12 +44,14 @@ ROOT_PATH=/path/to/template/directory/and/sqliteDB
## 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
| Route | Description |
| ---------- | -------------------------------------------------- |
| / | shows the last 5 posts |
| /id/<id> | shows a single post by id |
| /all | shows all posts |
| /submit | set your submit token and create posts |
| /edit/<id> | edit, delete or hide posts |
| /about | information about this blog, social media accounts |
**API Routes**