Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

LowDB example

A simple posts app using tinyhttp and LowDB.

Setup

Install dependencies

tinyhttp new lowdb

Run

node index.js

Endpoints

GET / will return all available posts

GET /:id will return a post with specified id

POST / will insert a new post using the title query

PUT /:id will like a post with specified id

DELETE /:id will delete a post with specified id