diff options
| author | Valentin Popov <valentin@popov.link> | 2026-02-05 13:19:56 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-02-05 13:19:56 +0300 |
| commit | efa89313fa4152252b477aafd88f7cf4a66747d8 (patch) | |
| tree | 5939b251fe1bbc6bea3881a71154cabd3aa538ec /server/src/routes | |
| parent | f6de8611955bf382612996500efba21a2d64ea1f (diff) | |
| download | strapi-plugin-checkbox-list-efa89313fa4152252b477aafd88f7cf4a66747d8.tar.xz strapi-plugin-checkbox-list-efa89313fa4152252b477aafd88f7cf4a66747d8.zip | |
Initial Strapi plugin project
Diffstat (limited to 'server/src/routes')
| -rw-r--r-- | server/src/routes/admin/index.ts | 4 | ||||
| -rw-r--r-- | server/src/routes/content-api/index.ts | 14 | ||||
| -rw-r--r-- | server/src/routes/index.ts | 9 |
3 files changed, 27 insertions, 0 deletions
diff --git a/server/src/routes/admin/index.ts b/server/src/routes/admin/index.ts new file mode 100644 index 0000000..9f1b6f7 --- /dev/null +++ b/server/src/routes/admin/index.ts @@ -0,0 +1,4 @@ +export default () => ({ + type: 'admin', + routes: [], +}); 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: [], + }, + }, + ], +}); diff --git a/server/src/routes/index.ts b/server/src/routes/index.ts new file mode 100644 index 0000000..486705a --- /dev/null +++ b/server/src/routes/index.ts @@ -0,0 +1,9 @@ +import contentAPIRoutes from './content-api'; +import adminAPIRoutes from './admin'; + +const routes = { + 'content-api': contentAPIRoutes, + admin: adminAPIRoutes, +}; + +export default routes; |
