mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-25 13:51:17 +00:00
Fix lint.
This commit is contained in:
parent
945619a563
commit
d84337f530
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
import express from "express";
|
import express, { RequestHandler } from "express";
|
||||||
import { StaticRouter } from "inferno-router";
|
import { StaticRouter } from "inferno-router";
|
||||||
import { renderToString } from "inferno-server";
|
import { renderToString } from "inferno-server";
|
||||||
// import { matchPath } from "inferno-router";
|
// import { matchPath } from "inferno-router";
|
||||||
|
@ -12,8 +12,8 @@ import { i18n } from "../shared/i18next";
|
||||||
const server = express();
|
const server = express();
|
||||||
const port = 1234;
|
const port = 1234;
|
||||||
|
|
||||||
server.use(express.json());
|
server.use(express.json() as RequestHandler);
|
||||||
server.use(express.urlencoded({ extended: false }));
|
server.use(express.urlencoded({ extended: false }) as RequestHandler);
|
||||||
server.use("/static", express.static(path.resolve("./dist")));
|
server.use("/static", express.static(path.resolve("./dist")));
|
||||||
server.use("/docs", express.static(path.resolve("./dist/assets/docs")));
|
server.use("/docs", express.static(path.resolve("./dist/assets/docs")));
|
||||||
server.use("/api", express.static(path.resolve("./dist/assets/api")));
|
server.use("/api", express.static(path.resolve("./dist/assets/api")));
|
||||||
|
|
Loading…
Reference in a new issue