Restructure project
This commit is contained in:
parent
e44e7caa11
commit
16b2f17301
46 changed files with 1744 additions and 1265 deletions
13
internal/router/middleware.go
Normal file
13
internal/router/middleware.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package router
|
||||
|
||||
import (
|
||||
"github.com/labstack/echo/v4"
|
||||
)
|
||||
|
||||
func authHeader(next echo.HandlerFunc) echo.HandlerFunc {
|
||||
return func(c echo.Context) error {
|
||||
c.Response().Header().Set("Remote-Groups", c.Request().Header.Get("Remote-Groups"))
|
||||
c.Response().Header().Set("Remote-Name", c.Request().Header.Get("Remote-Name"))
|
||||
return next(c)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue