disable matrix layer by default
This commit is contained in:
parent
49d8032638
commit
53689fdaf6
1 changed files with 5 additions and 1 deletions
|
@ -5,13 +5,17 @@ import messagesRouter from "./routes/api/v1/messages";
|
|||
import matrixRouter from "./routes/matrix";
|
||||
import { errors } from "./errors";
|
||||
|
||||
const ENABLE_MATRIX_LAYER = false;
|
||||
|
||||
export default function(app: Application) {
|
||||
app.use(json());
|
||||
app.use("/api/v1/users", usersRouter);
|
||||
app.use("/api/v1/channels", channelsRouter);
|
||||
app.use("/api/v1/messages", messagesRouter);
|
||||
app.use("/", express.static("frontend/public"));
|
||||
if (ENABLE_MATRIX_LAYER) {
|
||||
app.use("/", matrixRouter);
|
||||
}
|
||||
|
||||
const errorHandler: ErrorRequestHandler = (error, req, res, next) => {
|
||||
console.error("error: while handling request", error);
|
||||
|
|
Loading…
Reference in a new issue