Store and publish annotations on the web, as described in the Web Annotation Discovery proposal.

web-annotation-discovery-se.../routes/ db.ts
13 lines
282 B

  1. // Copyright (c) 2020 Jan Kaßel
  2. // Copyright (c) 2022 Gerben
  3. //
  4. // SPDX-License-Identifier: MIT
  5. import { Level } from 'level';
  6. import { databasePath } from '../config/config.json';
  7. const db = new Level<string, any>(databasePath, {
  8. valueEncoding: 'json',
  9. });
  10. export default db;