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

web-annotation-discovery-se.../routes/render/ renderUser.ts
14 lines
230 B

  1. import type { Request, Response } from 'express';
  2. export function renderUser(
  3. req: Request,
  4. res: Response,
  5. { name, ...other },
  6. ) {
  7. res.render('user', {
  8. title: `Annotations of ${name}`,
  9. name,
  10. ...other,
  11. });
  12. }