Fixing new type errors
This commit is contained in:
parent
7cefae1afe
commit
22dabae8ef
@ -7,7 +7,7 @@ import ClientRouter from "./client";
|
|||||||
import * as cors from "cors";
|
import * as cors from "cors";
|
||||||
import OAuthRoute from "./oauth";
|
import OAuthRoute from "./oauth";
|
||||||
|
|
||||||
const ApiRouter: express.IRouter<void> = express.Router();
|
const ApiRouter: express.IRouter = express.Router();
|
||||||
ApiRouter.use("/admin", AdminRoute);
|
ApiRouter.use("/admin", AdminRoute);
|
||||||
ApiRouter.use(cors())
|
ApiRouter.use(cors())
|
||||||
ApiRouter.use("/user", UserRoute);
|
ApiRouter.use("/user", UserRoute);
|
||||||
|
@ -19,7 +19,7 @@ Handlebars.registerHelper("appname", () => config.core.name);
|
|||||||
|
|
||||||
const cacheTime = config.core.dev ? moment.duration(1, "month").asSeconds() : 10;
|
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) => {
|
ViewRouter.get("/", UserMiddleware, (req, res) => {
|
||||||
res.send("This is the main page")
|
res.send("This is the main page")
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user