server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Routes = []types.Route{
	{
		Path:    schema.KeyPath,
		Handler: local(keyListHandler),
		Methods: []string{"GET"},
	},
	{
		Path:    schema.KeyPath,
		Handler: local(newHandler),
		Methods: []string{"POST"},
	},
	{
		Path:    keyID,
		Handler: keyHandler,
		Methods: []string{"GET"},
	},
	{
		Path:    keyReqID,
		Handler: keyHandler,
		Methods: []string{"GET"},
	},
	{
		Path:    keyID,
		Handler: local(keyHandler),
		Methods: []string{"DELETE"},
	},
	{
		Path:    schema.ReqPath,
		Handler: local(reqListHandler),
		Methods: []string{"GET"},
	},
	{
		Path:    reqID,
		Handler: local(reqHandler),
		Methods: []string{"PUT", "DELETE"},
	},
}

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