diff options
Diffstat (limited to 'server/src/routes/content-api/index.ts')
| -rw-r--r-- | server/src/routes/content-api/index.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/server/src/routes/content-api/index.ts b/server/src/routes/content-api/index.ts new file mode 100644 index 0000000..5c96dcf --- /dev/null +++ b/server/src/routes/content-api/index.ts @@ -0,0 +1,14 @@ +export default () => ({ + type: 'content-api', + routes: [ + { + method: 'GET', + path: '/', + // name of the controller file & the method. + handler: 'controller.index', + config: { + policies: [], + }, + }, + ], +}); |
