Deta example
Simple todo example with tinyhttp and Deta Base.
tinyhttp new detaThen create an .env file with Deta Base API key:
# .env
KEY=MY_KEYnode index.jsGET /todos- returns all the existing tasks.POST /todos- adds a new task to the database.PUT /todos- updates an existing task. Requires the items'sidproperty along with thetaskanddate.DELETE /todos- deletes an existing task. Requires theidproperty of the target item.