app.js 3

PHOTO EMBED

Tue Sep 07 2021 20:32:33 GMT+0000 (UTC)

Saved by @devdave

// for parsing body application/json
app.use(express.json());

// for this route => use *dirname*Routes
app.use("/api/sauces", saucesRoutes);
app.use("/api/auth", userRoutes);

// [=>] EXPORT App
// -
module.exports = app;
content_copyCOPY