rename endpoints

This commit is contained in:
andrzej 2024-05-27 16:12:44 +02:00
parent 5a406be06e
commit cbcdd646c3
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import logger from "./logger.mjs";
import bodyParser from "body-parser";
import { Data } from "./objects/Data.mjs";
import { db } from "./db.mjs";
import { getEndpoints, postEndpoints } from "./objects/Endpoints.mjs";
import { getEndpoints, protectedEndpoints } from "./objects/Endpoints.mjs";
import cors from "cors";
import helmet from "helmet";
import passport from "passport";
@ -24,7 +24,7 @@ const data = new Data(db);
await data.init();
app.use("/api", getEndpoints(data));
app.use("/api", postEndpoints(db, data));
app.use("/api", protectedEndpoints(db, data));
app.listen(port, (err) => {
if (err) logger.error(err);