Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/auth jwt #1

Merged
merged 10 commits into from
Jul 31, 2022
Prev Previous commit
Next Next commit
psuedo code update
  • Loading branch information
Daniel-Workman committed Jul 20, 2022
commit c8d75e16963d918c2febc30c038cd22dbb8b2976
1 change: 1 addition & 0 deletions server/models/userModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const userSchema = new Schema({
});

//create the model.
//pass third param to specify which collection to pass data into
//https://mongoosejs.com/docs/api.html#mongoose_Mongoose-model
const User = model("User", userSchema, "users");
export default User;