init from gitlab

This commit is contained in:
texm
2023-04-25 14:33:14 +08:00
parent 6a85a41ff0
commit c8202a5c82
281 changed files with 19861 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
package auth
import (
"github.com/labstack/echo/v4"
"gitlab.com/texm/shokku/internal/env"
)
func RegisterRoutes(e *env.Env, g *echo.Group, authG *echo.Group) {
g.POST("/login", e.H(HandlePasswordLogin))
g.GET("/github", e.H(GetGithubAuthInfo))
g.POST("/github/auth", e.H(CompleteGithubAuth))
g.POST("/logout", e.H(HandleLogout))
authG.GET("/details", e.H(HandleGetDetails))
authG.POST("/refresh", e.H(HandleRefreshAuth))
}