add skip auth in minipart
This commit is contained in:
parent
8e83ed89fa
commit
691137f66a
@ -36,6 +36,9 @@ func AnswererChain() fiber.Handler {
|
|||||||
|
|
||||||
func JWTAuth() fiber.Handler {
|
func JWTAuth() fiber.Handler {
|
||||||
return func(c *fiber.Ctx) error {
|
return func(c *fiber.Ctx) error {
|
||||||
|
if c.Path() == "/quiz/logo" {
|
||||||
|
return c.Next()
|
||||||
|
}
|
||||||
authHeader := c.Get("Authorization")
|
authHeader := c.Get("Authorization")
|
||||||
if authHeader == "" {
|
if authHeader == "" {
|
||||||
c.Status(fiber.StatusUnauthorized).SendString("no JWT found")
|
c.Status(fiber.StatusUnauthorized).SendString("no JWT found")
|
||||||
|
Loading…
Reference in New Issue
Block a user