Skip to content

Commit

Permalink
Updated schema in app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Kellsonphilips authored Sep 4, 2022
1 parent 2884859 commit ecd798e
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,6 @@ Article();



// /////////////// Creating a Schema for our date //////////////////

// const articlesSchema = {
// title: String,
// content: String
// }

// //////////////////// Creating a mongoose model for our data /////////////
// const Article = new mongoose.model("Article", articlesSchema);




/////////////////// Request targetting all articles ///////////////////
app.route("/articles")
Expand Down Expand Up @@ -145,4 +133,4 @@ app.route("/articles/:articlesTitle")

app.listen(3000, function(req, res) {
console.log("Server is started on port: 3000")
});
});

0 comments on commit ecd798e

Please sign in to comment.