14 lines
386 B
Go
14 lines
386 B
Go
![]() |
package initialize
|
||
|
|
||
|
import (
|
||
|
"penahub.gitlab.yandexcloud.net/external/treasurer/internal/errors"
|
||
|
"penahub.gitlab.yandexcloud.net/external/treasurer/internal/swagger"
|
||
|
)
|
||
|
|
||
|
func NewAPI(controllers *Controllers) (*swagger.API, errors.Error) {
|
||
|
return swagger.New(swagger.Deps{
|
||
|
CommonController: controllers.CommonREST,
|
||
|
YandexStatusController: controllers.YandexStatusREST,
|
||
|
})
|
||
|
}
|