diff options
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/example.js | 7 | ||||
-rw-r--r-- | server/controllers/products.js | 23 |
2 files changed, 23 insertions, 7 deletions
diff --git a/server/controllers/example.js b/server/controllers/example.js deleted file mode 100644 index 400bafc..0000000 --- a/server/controllers/example.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = { - index(req, res) { - res.json({ - status: "success" - }); - } -}; diff --git a/server/controllers/products.js b/server/controllers/products.js new file mode 100644 index 0000000..6265e27 --- /dev/null +++ b/server/controllers/products.js @@ -0,0 +1,23 @@ +module.exports = { + + index(req, res) { + res.json({products: "index"}); + }, + + show(req, res) { + res.json({products: "show"}); + }, + + store(req, res) { + res.json({products: "store"}); + }, + + update(req, res) { + res.json({products: "update"}); + }, + + destroy(req, res) { + res.json({products: "destroy"}); + }, + +}; |