diff options
Diffstat (limited to 'server/src/routes/content-api/index.js')
| -rw-r--r-- | server/src/routes/content-api/index.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/server/src/routes/content-api/index.js b/server/src/routes/content-api/index.js new file mode 100644 index 0000000..5b4fd7c --- /dev/null +++ b/server/src/routes/content-api/index.js @@ -0,0 +1,16 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = () => ({ + type: 'content-api', + routes: [ + { + method: 'GET', + path: '/', + // name of the controller file & the method. + handler: 'controller.index', + config: { + policies: [], + }, + }, + ], +}); |
