api

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(m *mux.Router, prefix string, routes []Route)

RegisterRoutes dynamically registers routes on the mux with the given prefix

Types

type Route

type Route struct {
	Path    string
	Methods []string
	Func    func(w http.ResponseWriter, r *http.Request)
}

Route represents a HTTP route

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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