StaticBlog.Web.Router (StaticBlog v0.2.0)

Copy Markdown View Source

HTTP router for the Micropub editing server.

Exposes:

  • GET /micropub — Micropub query endpoint (?q=config, ?q=source).
  • POST /micropub — Micropub create / update / delete endpoint.
  • GET / — a tiny status page so humans hitting the URL get useful output.

All /micropub routes require bearer-token authentication through StaticBlog.Web.Auth.

Summary

Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.

Functions

call(conn, opts)

Callback implementation for Plug.call/2.

init(opts)

Callback implementation for Plug.init/1.