UNPKG

md-toy-blog

Version:

Very simple Markdown blog: serves your md as html without fancy databases. You will only spend time writing the actual data.

21 lines (19 loc) 618 B
import { LoadDictElement, GetInstanceType } from 'di-why/build/src/DiContainer'; import StaticFileController from '../controllers/StaticFileController'; const loadDictElement: LoadDictElement<GetInstanceType<typeof StaticFileController>> = { before: async function ({ serviceLocator }) { try { const { staticFilesDir } = await serviceLocator.get<AppConfig>('appConfig'); return { staticFilesDir, }; } catch (err) { throw err; } }, constructible: StaticFileController, locateDeps: { staticFilesDir: 'MTB_STATIC_FILES_DIR', } }; export default loadDictElement;