mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-17 04:32:15 +01:00
adding first tests + small refactoring for tests
This commit is contained in:
@@ -26,8 +26,8 @@ type App struct {
|
||||
|
||||
// NewApp instantiates the application by loading the configuration from the
|
||||
// gotenberg.yml file.
|
||||
func NewApp(version string) (*App, error) {
|
||||
c, err := config.NewAppConfig()
|
||||
func NewApp(version string, configurationFilePath string) (*App, error) {
|
||||
c, err := config.NewAppConfig(configurationFilePath)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user