feat(menu-logo): added menuLogo url to /init route

This commit is contained in:
vincentbpro 2022-04-20 16:11:43 +02:00
parent 4c80b3f798
commit 96302c8ae8

View File

@ -44,8 +44,15 @@ module.exports = {
async init() { async init() {
const uuid = strapi.config.get('uuid', false); const uuid = strapi.config.get('uuid', false);
const hasAdmin = await getService('user').exists(); const hasAdmin = await getService('user').exists();
const { menuLogo } = await getService('project-settings').getProjectSettings();
return { data: { uuid, hasAdmin } }; return {
data: {
uuid,
hasAdmin,
menuLogo: menuLogo ? menuLogo.url : null,
},
};
}, },
async getProjectSettings() { async getProjectSettings() {