package
0.0.0-20220304170535-303641e2a083
Repository: https://github.com/xdrm-io/articles-api.git
Documentation: pkg.go.dev
# Functions
AuthMiddleware is used to update request's context to consider permissions active as for the current request' user
As this is an example project, there is no authorization mechanism, you just have to set a header `User` with the user id as a value to be authenticated as the provided user.
NewHandler injects dependencies to create a proper services' handler.