prakharporwal / bank-server

Backend Server for a bank Infrastructure (Go and Postgres)
Other
2 stars 1 forks source link

Implement Middlewares in before API endpoints #36

Closed prakharporwal closed 2 years ago

prakharporwal commented 2 years ago

when a HTTP request comes in I want it to pass via a middleware like the auth middleware to check who is user and is he authorized to make certain actions.

prakharporwal commented 2 years ago

Middleware can be added to gin.Router where is passed the request in a chaining manner.

prakharporwal commented 2 years ago

Done