mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-09 05:59:50 +00:00
20 lines
478 B
Go
20 lines
478 B
Go
package routes
|
|
|
|
import (
|
|
"github.com/usual2970/certimate/internal/notify"
|
|
"github.com/usual2970/certimate/internal/repository"
|
|
"github.com/usual2970/certimate/internal/rest"
|
|
|
|
"github.com/labstack/echo/v5"
|
|
"github.com/pocketbase/pocketbase/apis"
|
|
)
|
|
|
|
func Register(e *echo.Echo) {
|
|
notifyRepo := repository.NewSettingRepository()
|
|
notifySvc := notify.NewNotifyService(notifyRepo)
|
|
|
|
group := e.Group("/api", apis.RequireAdminAuth())
|
|
|
|
rest.NewNotifyHandler(group, notifySvc)
|
|
}
|