wip
This commit is contained in:
16
mangezmieux-backend/internal/jwt/setup.go
Normal file
16
mangezmieux-backend/internal/jwt/setup.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package jwt
|
||||
|
||||
import (
|
||||
"mangezmieux-backend/internal/injector"
|
||||
)
|
||||
|
||||
const JWTKey = "JWT"
|
||||
|
||||
func Setup(inj *injector.Injector) {
|
||||
|
||||
// build components
|
||||
service := NewService()
|
||||
|
||||
// register provided components
|
||||
inj.Set(JWTKey, service)
|
||||
}
|
||||
Reference in New Issue
Block a user