Crate bobashare_web

Source
Expand description

Webserver written with axum which provides a frontend and REST API for bobashare

Modules§

  • Public facing REST API for bobashare
  • Handler to serve static files
  • Frontend views (as opposed to REST API)

Structs§

  • A struct that contains all the state and config for bobashare

Enums§

Constants§

Functions§

  • Take the requested expiry, and make sure it’s within the maximum expiry.
  • Render markdown into HTML, including syntax highlighting for code blocks using syntect.
  • Take a string with a simple duration format (single number followed by unit) and output a StdDuration. Accepts durations in minutes (m), hours (h), days (d), weeks (w), months (mon), or years (y).