martini-example

command
v0.0.0-...-506c079 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2017 License: MIT Imports: 5 Imported by: 0

README

Martini example

This is an example of how to use the middleware with Martini.

Using it

To try this out, first install all dependencies with go install and then run go run main.go to start the app.

  • Call http://localhost:3001/ping to get a JSon response without the need of a JWT.
  • Call http://localhost:3001/secured/ping with a JWT signed with My Secret to get a response back.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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