strapi-plugin-config-sync/server/routes/admin.js

32 lines
486 B
JavaScript
Raw Normal View History

2021-10-14 14:37:00 +02:00
'use strict';
module.exports = {
type: 'admin',
routes: [
{
2021-11-20 19:06:01 +01:00
method: "POST",
2021-10-14 14:37:00 +02:00
path: "/export",
handler: "config.exportAll",
config: {
policies: [],
},
},
{
2021-11-20 19:06:01 +01:00
method: "POST",
2021-10-14 14:37:00 +02:00
path: "/import",
handler: "config.importAll",
config: {
policies: [],
},
},
{
method: "GET",
path: "/diff",
handler: "config.getDiff",
config: {
policies: [],
},
},
],
};