Skip to content

Commit

Permalink
changed user model
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiraj-ku committed Aug 29, 2024
1 parent 52b2555 commit 4b7c325
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Empty file added controllers/groupChoice.js
Empty file.
4 changes: 0 additions & 4 deletions models/userModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ const userSchema = new mongoose.Schema({
type: String,
required: true,
unique: true,
code: {
type: String,
required: true,
},
},
avatar: {
type: String, // URL to the user's profile picture
Expand Down
8 changes: 8 additions & 0 deletions routes/userRedirect.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const express = require("express");
const router = express.Router;

// POST -> User's choice to get info about group creation or joining

router.post("/user/choice", userChoice);

module.exports = router;

0 comments on commit 4b7c325

Please sign in to comment.