mirror of
https://github.com/strapi/strapi.git
synced 2025-08-29 11:15:55 +00:00

* fix: content-api route extension for i18n and users-permissions * refactor: simplify tests to catch breaking change * test: cli for openapi plugin routes * refactor: implement createcontentapiroutesfactory for content-api routes across multiple packages * fix: more accurate message * chore: formatting * chore: cleanup backward compatibility tests --------- Co-authored-by: Ziyi Yuan <daydreamnation@live.com>
19 lines
496 B
JavaScript
19 lines
496 B
JavaScript
'use strict';
|
|
|
|
const { createContentApiRoutesFactory } = require('@strapi/utils');
|
|
const authRoutes = require('./auth');
|
|
const userRoutes = require('./user');
|
|
const roleRoutes = require('./role');
|
|
const permissionsRoutes = require('./permissions');
|
|
|
|
const createContentApiRoutes = createContentApiRoutesFactory(() => {
|
|
return [
|
|
...authRoutes(strapi),
|
|
...userRoutes(strapi),
|
|
...roleRoutes(strapi),
|
|
...permissionsRoutes(strapi),
|
|
];
|
|
});
|
|
|
|
module.exports = createContentApiRoutes;
|