// functions/api/notes.js: this file answers /api/notes and the paths beneath // it. A function is a module whose default export has fetch(request) and // returns a Response. import { notesStore } from '../../lib/db.js'; import { createNotesApi } from '../../lib/notes.js'; export default { fetch: createNotesApi(notesStore) };