admin

package
v0.0.0-...-b405234 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2016 License: MIT Imports: 13 Imported by: 0

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

func NewHandler(route string) *kami.Mux

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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