Added unit and api tests
This commit is contained in:
parent
9f4204cc73
commit
fedf1eb4c5
34 changed files with 9205 additions and 20 deletions
4
backend/dist/index.js
vendored
4
backend/dist/index.js
vendored
|
|
@ -15,6 +15,8 @@ const teams_1 = __importDefault(require("./routes/teams"));
|
|||
const routes_1 = __importDefault(require("./routes/routes"));
|
||||
const users_1 = __importDefault(require("./routes/users"));
|
||||
const upload_1 = __importDefault(require("./routes/upload"));
|
||||
const admin_1 = __importDefault(require("./routes/admin"));
|
||||
const apikeys_1 = __importDefault(require("./routes/apikeys"));
|
||||
const index_1 = __importDefault(require("./socket/index"));
|
||||
const app = (0, express_1.default)();
|
||||
const httpServer = (0, http_1.createServer)(app);
|
||||
|
|
@ -34,6 +36,8 @@ app.use('/api/teams', teams_1.default);
|
|||
app.use('/api/routes', routes_1.default);
|
||||
app.use('/api/users', users_1.default);
|
||||
app.use('/api/upload', upload_1.default);
|
||||
app.use('/api/admin', admin_1.default);
|
||||
app.use('/api', apikeys_1.default);
|
||||
app.get('/api/health', (req, res) => {
|
||||
res.json({ status: 'ok' });
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue