Documentation ¶
Overview ¶
Package admin provides an http.Handler for the ori command-line utility.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
NewHandler returns an http.Handler that supports the ori command-line utility. Mount it as follows:
http.Handle("/path/to/api/_ori/", admin.NewHandler("/path/to/api/_ori/")) // Note the trailing slashes http.Handle("/path/to/api", kami.Handler())
You can attach it to a different path if you like; just make sure to use the --mount flag (or set ORI_ADMIN_MOUNT_POINT) in the CLI.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.