Module: pages/api/data

Methods

(inner) dataHandler()

This is the main API route for getting, creating, updating, and deleting dreams.

This is the main API route for getting, creating, updating, and deleting dreams. It supports GET, POST, PATCH, and DELETE, allowing users to search for dreams, create new dreams, update existing dreams, and delete dreams.

Source:

(async, inner) post()

This is called when a dream is saved for the very first time.

This is called when a dream is saved for the very first time.

Source: