Brijesh's Git Server — k3yst0n3 @ ef65151e3c786a8927a822d95a948038bb17bde4

server/routes.go (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
package main

import (
	"k3yst0n3/internal/auth"

	"github.com/labstack/echo/v4"
)

func setupRoutes(e *echo.Echo) {
	e.GET("/health-check", HealthCheckHandler)

	// authentication routes
	e.POST("/register", auth.RegisterUser)
	e.POST("/login", auth.LoginUser)
}