From fd0fafa68d638b729a506ba668165e29eea71a49 Mon Sep 17 00:00:00 2001 From: Mateja Date: Fri, 9 Jul 2021 17:13:23 +0200 Subject: Backend boilerplate code... --- server/routes/api.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 server/routes/api.js (limited to 'server/routes') diff --git a/server/routes/api.js b/server/routes/api.js new file mode 100644 index 0000000..3684aa0 --- /dev/null +++ b/server/routes/api.js @@ -0,0 +1,8 @@ +const express = require('express'); +const router = express.Router(); + +const exampleController = require('../controllers/example'); + +router.get('/', exampleController.index); + +module.exports = router; -- cgit v1.2.3