Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UsernameContextKey = usernameContext("username")
UsernameContextKey - identify the http Context for the username that is passed into handlers
Functions ¶
func AuthMiddleware ¶
AuthMiddleware - ensure valid access token is passed for API routes that require authentication
func ForwarderHandler ¶
func ForwarderHandler(w http.ResponseWriter, r *http.Request)
ForwarderHandler - perform the short URL HTTP redirects on the / route
func SetUpAuthHandlers ¶
SetUpAuthHandlers - set up the /api/auth REST handlers
func SetUpUrlsHandlers ¶
SetUpUrlsHandlers - set up the /urls REST handlers
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.