diff --git a/api/app.js b/api/app.js index 2925ecc..da06730 100644 --- a/api/app.js +++ b/api/app.js @@ -23,7 +23,6 @@ app.use(cookieParser()); app.use(express.static(path.join(__dirname, 'public'))); app.use((req, res, next) => { - console.log("Ben app.js te tanımlanan bir middleware'im"); next(); }); diff --git a/api/routes/categories.js b/api/routes/categories.js new file mode 100644 index 0000000..c5ee64f --- /dev/null +++ b/api/routes/categories.js @@ -0,0 +1,9 @@ +var express = require('express'); +var router = express.Router(); + +/* GET users listing. */ +router.get('/', function(req, res, next) { + res.json({ success: true }); +}); + +module.exports = router;