(config: FileConfig)
| 107 | } |
| 108 | }; |
| 109 | export const writeMiddleware = (config: FileConfig) => { |
| 110 | const { DYNAMIC_TRAEFIK_PATH } = paths(); |
| 111 | const configPath = join(DYNAMIC_TRAEFIK_PATH, "middlewares.yml"); |
| 112 | const newYamlContent = stringify(config); |
| 113 | writeFileSync(configPath, newYamlContent, "utf8"); |
| 114 | }; |
| 115 | |
| 116 | export const createPathMiddlewares = async ( |
| 117 | app: ApplicationNested, |
no test coverage detected