Skip to content

Commit

Permalink
adds controllers and modifies education model
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgarritano committed Feb 25, 2024
1 parent b86aed9 commit 6b42b5c
Showing 9 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/controllers/.gitkeep

This file was deleted.

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion src/models/education.model.ts
Original file line number Diff line number Diff line change
@@ -24,4 +24,4 @@ const Education = new Schema<EducationType>({
year: { type: String, required: true },
});

export const EducationModel = mongoose.model("Education", Education);
export const EducationModel = mongoose.model("Education", Education, "education");

0 comments on commit 6b42b5c

Please sign in to comment.