Add /api/authping endpoint
This commit is contained in:
parent
155deb889c
commit
fdc3ca101c
|
@ -44,6 +44,7 @@ func main() {
|
||||||
api := r.Group("/api")
|
api := r.Group("/api")
|
||||||
{
|
{
|
||||||
api.GET("/ping", handlers.PingGet)
|
api.GET("/ping", handlers.PingGet)
|
||||||
|
api.GET("/authping", middleware.AuthMiddleware(), handlers.PingGet)
|
||||||
userRoutes := api.Group("/user")
|
userRoutes := api.Group("/user")
|
||||||
{
|
{
|
||||||
userRoutes.POST("/register", handlers.UserRegister)
|
userRoutes.POST("/register", handlers.UserRegister)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user