Documentation ¶
Index ¶
Constants ¶
View Source
const SessionName = "erickson"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RootHandler ¶
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
Click to show internal directories.
Click to hide internal directories.