doorgan/app.config.ts

16 lines
375 B
TypeScript
Raw Normal View History

2024-10-21 02:48:23 +00:00
import { container } from "#/lib/container.ts";
import { ConfigLoader } from "#/lib/config/index.ts";
const configLoader = await ConfigLoader.New(
"doorgan.yml",
"doorgan.yaml",
Deno.env.get("HOME")+"/.config/doorgan.yml",
Deno.env.get("HOME")+"/.config/doorgan.yaml"
)
container.bind({
provide: ConfigLoader,
useFactory: () => {
return configLoader;
}
})