2021-09-07 14:51:48 +02:00
|
|
|
'use strict';
|
|
|
|
|
2025-08-18 12:28:39 +01:00
|
|
|
const { createContentApiRoutesFactory } = require('@strapi/utils');
|
2021-09-07 14:51:48 +02:00
|
|
|
const authRoutes = require('./auth');
|
|
|
|
const userRoutes = require('./user');
|
|
|
|
const roleRoutes = require('./role');
|
|
|
|
const permissionsRoutes = require('./permissions');
|
|
|
|
|
2025-08-18 12:28:39 +01:00
|
|
|
const createContentApiRoutes = createContentApiRoutesFactory(() => {
|
|
|
|
return [
|
|
|
|
...authRoutes(strapi),
|
|
|
|
...userRoutes(strapi),
|
|
|
|
...roleRoutes(strapi),
|
|
|
|
...permissionsRoutes(strapi),
|
|
|
|
];
|
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = createContentApiRoutes;
|