add basic structure of backend

This commit is contained in:
2025-09-21 22:52:01 +03:00
commit 6f633a1058
7 changed files with 139 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
package auth
import (
"errors"
"github.com/gofiber/fiber/v2"
)
func AuthHandler(c *fiber.Ctx) error {
return errors.New("not implemented")
}
+7
View File
@@ -0,0 +1,7 @@
package auth
type AuthRequest struct {
AccountHash string `json:"accountHash" validate:"required"`
TelegramId int32 `json:"telegramId" validate:"required"`
InitData string `json:"initData" validate:"required"`
}
+10
View File
@@ -0,0 +1,10 @@
package auth
import (
"github.com/gofiber/fiber/v2"
)
func SetupRoutes(app fiber.Router) fiber.Router {
app.Post("/", AuthHandler)
return app
}