Added routes / Connection to DB fixed

This commit is contained in:
2020-07-08 17:28:06 +02:00
parent 549ecd137f
commit c0c3177a58
5 changed files with 57 additions and 28 deletions

View File

@@ -1,7 +1,7 @@
const mongoose = require("mongoose");
const restaurantSchema = mongoose.Schema({
id: mongoose.Types.ObjectId,
_id: mongoose.Types.ObjectId,
name: String,
city: String,
imgUrl: String,