Skip to content

laurentlouk/Fenix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fenix API with sub-routes

Using sub-routes system with negroni and gorilla to generate auth if needed.

acct := acctBase.PathPrefix("/account").Subrouter()
acct.Path("/movies").HandlerFunc(CreateMovieEndPoint).Methods("POST")

/account is the sub-route that requires jwt verification and /movies is the regular route

Generate RSA signing files via shell (adjust as needed):

$ openssl genrsa -out app.rsa 1024

$ openssl rsa -in app.rsa -pubout > app.rsa.pub

About

Golang gorilla and Negroni for sub-routes auth (jwt)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages