Public
HTTP (deprecated)
  • nbbaier avatar
    aocDay4
    @nbbaier
    // @title Day 4 solutions
    Script
  • nbbaier avatar
    dbToAPIexample
    @nbbaier
    This val demonstrates the creation of an API for a Val Town lowdb instance.
    HTTP (deprecated)
  • nbbaier avatar
    dbToAPI
    @nbbaier
    Create an API from a lowdb blob This val exports a function that takes a lowdb instance and returns a Hono router that can be used to interact with the data. This is the beginning of an implementation of something like json-server for Val Town. The resulting server also comes with a frontend at / . The code for the frontend can be found here . See this val for an example. Things I'd like to implement All HTTP methods Custom route definitions (like in json-server ) Custom frontends Filtering, sorting, pagination, etc
    Script
1
Next
nbbaier-lowdbtest.web.val.run
July 4, 2024