Fixing new type errors

This commit is contained in:
Fabian Stamm 2019-12-16 14:26:54 +01:00
parent 7cefae1afe
commit 22dabae8ef
2 changed files with 142 additions and 142 deletions

View File

@ -7,7 +7,7 @@ import ClientRouter from "./client";
import * as cors from "cors";
import OAuthRoute from "./oauth";
const ApiRouter: express.IRouter<void> = express.Router();
const ApiRouter: express.IRouter = express.Router();
ApiRouter.use("/admin", AdminRoute);
ApiRouter.use(cors())
ApiRouter.use("/user", UserRoute);

View File

@ -19,7 +19,7 @@ Handlebars.registerHelper("appname", () => config.core.name);
const cacheTime = config.core.dev ? moment.duration(1, "month").asSeconds() : 10;
const ViewRouter: IRouter<void> = Router();
const ViewRouter: IRouter = Router();
ViewRouter.get("/", UserMiddleware, (req, res) => {
res.send("This is the main page")
})