Documentation ¶
Overview ¶
Package api registers needed HTTP handlers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Store should point to an implementation of TiddlerStore. Store store.TiddlerStore // Authenticate is a hook that lets the client of the package to // provide some authentication. // Authenticate should write to the ResponseWriter iff the user // may not access the endpoint. Authenticate func(http.ResponseWriter, *http.Request) // ServeIndex is a callback that should serve the index page. ServeIndex = func(w http.ResponseWriter, r *http.Request) { http.ServeFile(w, r, "index.html") } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.