server

package
v0.0.0-...-1c93661 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2016 License: GPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const SessionName = "erickson"

Variables

This section is empty.

Functions

This section is empty.

Types

type RootHandler

type RootHandler struct {
	*mux.Router
	db.Database
	URL    *string
	FSRoot string
}

func NewRootHandler

func NewRootHandler(d db.Database, fsRoot string, sessionKey []byte, mailer mail.Mailer, urlRoot string) *RootHandler

NewRootHandler creates a RootHandler with the following routes defined:

/ GET /reviews GET, POST /reviews/{id} GET, PATCH, DELETE /reviews/{id}/rev POST /reviews/{id}/rev/{revision} GET, PATCH /reviews/{id}/annotations POST /reviews/{id}/rev/{revision}/annotations POST /reviews/{id}/rev/{revision}/annotations/publish POST

/login GET, POST /logout POST /signup GET, POST /assets/{name} GET

Jump to

Keyboard shortcuts

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