$ cd example && go run main.go
$ curl http://localhost:8080/auth
unauthorized
$ curl "http://localhost:8080/auth?access_token=footoken"
hello foo
$ curl -H "Authorization:Bearer bartoken" http://localhost:8080/auth
hello bar
example
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
parent directory.. | ||||