routers

package
v0.0.0-...-a50b575 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2017 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Overview

@APIVersion 1.0.0 @Title APayment API @Description Autogenerated API Documentation of the apayment backend @Contact moritz.schneider3@uzh.ch @TermsOfServiceUrl https://apayment.ch @License Apache 2.0 @LicenseUrl http://www.apache.org/licenses/LICENSE-2.0.html

Index

Constants

This section is empty.

Variables

View Source
var HandleJWT = func(ctx *context.Context) {
	if strings.Compare(ctx.Request.Method, "OPTIONS") == 0 {
		return
	}
	if strings.HasPrefix(ctx.Input.URL(), "/v1/user/login") {

		return
	}
	if services.Validate(ctx.Request.Header.Get("Authorization")) {
		return
	}
	ctx.Abort(401, "unauthorized")
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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