feat: gateway store.

This commit is contained in:
2026-05-01 20:29:53 +08:00
parent 942b0eeae1
commit cd490eea36
6 changed files with 105 additions and 1 deletions
+2
View File
@@ -135,6 +135,8 @@ func SetupRouter() *gin.Engine {
public.POST("/register", controllers.Register)
public.POST("/login", controllers.Login)
}
v1.GET("/gateways/by-mac", middleware.JWTAuth(), middleware.RequireOperatorOrHigher(), gatewayController.GetByMACForUser)
auth := v1.Group("/auth")
{
auth.GET("/token", deviceTokenHandler)