Skip to content

Commit

Permalink
fix minot
Browse files Browse the repository at this point in the history
  • Loading branch information
gungunfebrianza committed Aug 17, 2021
1 parent 8c4947c commit 59b48cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
File renamed without changes.
4 changes: 3 additions & 1 deletion Example-1/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const cors = require("cors");

const app = express();

const db = require("./app/models");
const db = require("./models/index");
// db.sequelize.sync();
db.sequelize.sync({ force: true }).then(() => {
console.log("Drop and re-sync db.");
Expand All @@ -26,6 +26,8 @@ app.get("/", (req, res) => {
res.json({ message: "Hello World!" });
});

require("./routes/tutorial.routes")(app);

// set port, listen for requests
const PORT = process.env.PORT || 8080;
app.listen(PORT, () => {
Expand Down

0 comments on commit 59b48cb

Please sign in to comment.