api

package
v0.0.0-...-8ecda37 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL