server.ProblemDetail

type ProblemDetail struct

Represents an RFC 9457 style problem details response payload.

server.Run

func server.Run()

Starts the HTTP server and registers all route handlers.

Routes:

  • GET /notes: Returns all notes.

  • GET /note/{id}: Placeholder endpoint for fetching a single note.

Behavior:

  • Logs the configured version string on startup.

  • Listens on port 6985.

  • Panics if the server fails to start.