This commit is contained in:
Amarpreet Minhas 2020-01-18 21:03:45 -05:00
parent cc2411f1c6
commit f0799e0adb

View file

@ -30,6 +30,7 @@ func main() {
auth.TokenAuth = jwtauth.New("HS256", []byte(os.Getenv("JWT_SECRET")), nil)
users.TokenAuth = auth.TokenAuth
blog.TokenAuth = auth.TokenAuth
// initiate the routes
router := Routes()