nbbaier avatar
mockToApi
@nbbaier
HTTP
This val demonstrates the creation of an API with a programmatically generated set of data instead of an existing Val Town lowdb instance.
nbbaier avatar
dbToApiBasicAuth
@nbbaier
Script
Basic Auth for dbToAPI This val demonstrates adding Basic auth to a dbToAPI API via Hono's [https://hono.dev/middleware/builtin/basic-auth](Basic Auth middleware). Just pass createServer an object of type {username: string; password: string} . The authentication is added to all routes.
nbbaier avatar
dbToAPIexample
@nbbaier
HTTP
This val demonstrates the creation of an API for a Val Town lowdb instance.
1
Next
v146
February 4, 2024