allRoutes

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const HeaderOnsPageType = "ONS-Page-Type"

HeaderOnsPageType is the header name that defines the handler that will be used by the Middleware

Variables

This section is empty.

Functions

func Handler

func Handler(routesHandler map[string]http.Handler, zebedeeClient *client.Client, cfg *config.Config) func(h http.Handler) http.Handler

Handler implements the middleware for dp-frontend-router. It sets the locale code, obtains the necessary cookies for the request path and access_token, authenticates with Zebedee if required, and obtains the "ONS-Page-Type" header to use the handler for the page type, if present.

Types

This section is empty.

Jump to

Keyboard shortcuts

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