nbbaier-dbtoapiexample.web.val.run
Readme

This val demonstrates the creation of an API for a Val Town lowdb instance.

1
2
3
4
5
6
import { createServer } from "https://esm.town/v/nbbaier/dbToAPI";
import { db } from "https://esm.town/v/nbbaier/lowdbTest";
const app = await createServer(db);
export default app.fetch;
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
v2
December 5, 2023