moved(index.js) moved some codes into startup folder

This commit is contained in:
Yusuf İpek
2021-07-25 10:05:17 +03:00
parent 45b722be38
commit 822b4340c5
3 changed files with 31 additions and 25 deletions
+7
View File
@@ -0,0 +1,7 @@
const express = require("express");
const people = require("../routes/person");
module.exports = function (app) {
app.use(express.json());
app.use("/api/person", people);
};