api

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedirectAPI added in v0.3.0

type RedirectAPI struct {
	Router *mux.Router
	Store  *store.Datastore
	// contains filtered or unexported fields
}

RedirectAPI provides a struct to wrap the api around

func Setup

func Setup(r *mux.Router, dataStore *store.Datastore, auth authorisation.Middleware) *RedirectAPI

Setup function sets up the api and returns an api

func (*RedirectAPI) UpsertRedirect added in v0.3.2

func (api *RedirectAPI) UpsertRedirect(w http.ResponseWriter, r *http.Request)

UpsertRedirect handles the creation or update of redirects

Jump to

Keyboard shortcuts

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