routes

package
v0.0.0-...-a114734 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EndpointAddSession = iota
	EndpointDeleteSession
)

Contains the index of all Endpoints

Variables

View Source
var SessionEndpoints = router.Endpoints{
	EndpointAddSession: {
		Verb:    "POST",
		Path:    "/sessions",
		Handler: handlers.AddSession,
		Params:  &handlers.AddSessionParams{},
	},
	EndpointDeleteSession: {
		Verb:    "DELETE",
		Path:    "/sessions/{token}",
		Handler: handlers.DeleteSession,
		Params:  &handlers.DeleteSessionParams{},
		Auth:    router.LoggedUserAccess,
	},
}

SessionEndpoints is a list of endpoints for this components

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