Skip to content

Commit 6b72860

Browse files
committed
troobleshooting, trying to figure out why my paths works locally but not in the URL
1 parent af71180 commit 6b72860

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ const app = express();
1717
app.use(cors());
1818
app.use(express.json());
1919

20+
// Define the model
2021
const NetflixTitle = mongoose.model("NetflixTitle", {
2122
show_id: Number,
2223
title: String,
2324
country: String,
2425
release_year: Number,
2526
rating: String,
2627
description: String,
27-
}, "netflixtitles"); // Namnet på kollektionen i MongoDB
28+
});
2829

2930
// Seed the database
3031
if (process.env.RESET_DB) {

0 commit comments

Comments
 (0)