chore: Refactoring event processors and service architecture (#2495)

This commit is contained in:
Tom Moor
2021-08-27 21:42:13 -07:00
committed by GitHub
parent 86f008293a
commit 28aef82af9
61 changed files with 1610 additions and 1498 deletions

View File

@@ -11,6 +11,7 @@ import { languages } from "../shared/i18n";
import env from "./env";
import apexRedirect from "./middlewares/apexRedirect";
import Share from "./models/Share";
import presentEnv from "./presenters/env";
import { opensearchResponse } from "./utils/opensearch";
import prefetchTags from "./utils/prefetchTags";
import { robotsResponse } from "./utils/robots";
@@ -52,7 +53,7 @@ const renderApp = async (ctx, next, title = "Outline") => {
const page = await readIndexFile(ctx);
const environment = `
window.env = ${JSON.stringify(env)};
window.env = ${JSON.stringify(presentEnv(env))};
`;
ctx.body = page
.toString()