Savepoint
This commit is contained in:
parent
7db1a3456b
commit
02c483950c
45 changed files with 5136 additions and 256 deletions
|
@ -5,11 +5,15 @@ import express from "express";
|
|||
import results from "../routes/results-route.js";
|
||||
import alerting from "../routes/alerting-route.js";
|
||||
import react from "../routes/react-route.js";
|
||||
import tests from "../routes/tests-route.js";
|
||||
import catalog from "../routes/catalog-route.js";
|
||||
import jobs from "../routes/jobs-route.js";
|
||||
|
||||
import mock from "../routes/mock-route.js";
|
||||
|
||||
const app = express();
|
||||
// Special Routes
|
||||
app.all("/", (req, res) => res.redirect("/qualiteer"));
|
||||
if (process.env.MOCK_ROUTES === "true") app.use(mock);
|
||||
|
||||
// Middlewares
|
||||
|
||||
|
@ -17,7 +21,7 @@ app.all("/", (req, res) => res.redirect("/qualiteer"));
|
|||
app.use(react); // Static Build Route
|
||||
app.use("/api/results", results);
|
||||
app.use("/api/alerting", alerting);
|
||||
app.use("/api/tests", tests);
|
||||
app.use("/api/catalog", catalog);
|
||||
app.use("/api/jobs", jobs);
|
||||
|
||||
export default app;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue