From 3dab5f4ab07fed83df228aaf39ce15bdec5e1acf Mon Sep 17 00:00:00 2001 From: mtrx Date: Sat, 21 Nov 2020 21:33:05 +0100 Subject: [PATCH] Update README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index b5aae1b..a4dc393 100644 --- a/README.md +++ b/README.md @@ -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/ shows a single post by id +- /blog/all shows all posts +- /blog/submit set your submit token and create posts +- /blog/edit/ edit, delete or hide posts + +**API Routes** + +- /api/blog/posts returns all posts as json