28 lines
606 B
Go
28 lines
606 B
Go
package routes
|
|
|
|
import (
|
|
authendpoint "server/internal/auth/endpoint"
|
|
authservice "server/internal/auth/service"
|
|
"server/internal/mail"
|
|
|
|
"github.com/gofiber/fiber/v3"
|
|
)
|
|
|
|
// Typescript: interface
|
|
type FormRequest struct {
|
|
Req string `json:"req"`
|
|
Count int `json:"count"`
|
|
}
|
|
|
|
// Typescript: interface
|
|
type FormResponse struct {
|
|
Test string `json:"test"`
|
|
}
|
|
|
|
func Register(app *fiber.App, authService *authservice.Service, mailService *mail.Service) {
|
|
registerSystemRoutes(app)
|
|
authendpoint.Register(app, authService, mailService)
|
|
registerUserRoutes(app, authService)
|
|
registerAdminRoutes(app)
|
|
}
|