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) DeleteRedirect ¶ added in v0.3.3
func (api *RedirectAPI) DeleteRedirect(w http.ResponseWriter, r *http.Request)
DeleteRedirect handles the deletion of a redirect
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
Click to show internal directories.
Click to hide internal directories.