package
0.0.0-20180820112432-d59d7d1c40b2
Repository: https://github.com/iron-io/functions.git
Documentation: pkg.go.dev

# README

Middleware Example

This example adds a simple authentication middleware to IronFunctions. See main.go for example code.

Building and Running

go build
./middleware

Then test with:

# First, create an app
fn apps create myapp
# And test
curl http://localhost:8080/v1/apps

You should get a 401 error.

Add an auth header and it should go through successfully:

curl -X GET -H "Authorization: Bearer KlaatuBaradaNikto" http://localhost:8080/v1/apps

# Structs

No description provided by the author