mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-11 15:52:58 +03:00
22 lines
706 B
Go
22 lines
706 B
Go
//go:build e2etest
|
|
|
|
package bootstrap
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"gorm.io/gorm"
|
|
|
|
"github.com/pocket-id/pocket-id/backend/internal/controller"
|
|
"github.com/pocket-id/pocket-id/backend/internal/service"
|
|
)
|
|
|
|
// When building for E2E tests, add the e2etest controller
|
|
func init() {
|
|
registerTestControllers = []func(apiGroup *gin.RouterGroup, db *gorm.DB, appConfigService *service.AppConfigService, jwtService *service.JwtService){
|
|
func(apiGroup *gin.RouterGroup, db *gorm.DB, appConfigService *service.AppConfigService, jwtService *service.JwtService) {
|
|
testService := service.NewTestService(db, appConfigService, jwtService)
|
|
controller.NewTestController(apiGroup, testService)
|
|
},
|
|
}
|
|
}
|