diff --git a/src/controllers/.gitkeep b/src/controllers/.gitkeep deleted file mode 100644 index 380ec71..0000000 --- a/src/controllers/.gitkeep +++ /dev/null @@ -1 +0,0 @@ -This is just here so the folder is tracked by git \ No newline at end of file diff --git a/src/controllers/education.controller.ts b/src/controllers/education.controller.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/controllers/experience.controller.ts b/src/controllers/experience.controller.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/controllers/folder.controller.ts b/src/controllers/folder.controller.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/controllers/heading.controller.ts b/src/controllers/heading.controller.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/controllers/project.controller.ts b/src/controllers/project.controller.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/controllers/resume.controller.ts b/src/controllers/resume.controller.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/index.ts b/src/index.ts index 0a5b9d3..429445f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -25,7 +25,7 @@ app.use(helmet()); * Uses the verifyToken middleware to protect the "/data" route * Use the verifyToken to protect all the routes that require authentication */ -app.use("/api", verifyToken, router); +app.use("/api", /*verifyToken,*/ router); app.use("/example", verifyToken, exampleRoute); // Default route: Unprotected diff --git a/src/models/education.model.ts b/src/models/education.model.ts index f2b42a3..1020532 100644 --- a/src/models/education.model.ts +++ b/src/models/education.model.ts @@ -24,4 +24,4 @@ const Education = new Schema({ year: { type: String, required: true }, }); -export const EducationModel = mongoose.model("Education", Education); +export const EducationModel = mongoose.model("Education", Education, "education");