mirror of
https://github.com/strapi/strapi.git
synced 2025-09-24 07:50:33 +00:00
feat(menu-logo): added menuLogo url to /init route
This commit is contained in:
parent
4c80b3f798
commit
96302c8ae8
@ -44,8 +44,15 @@ module.exports = {
|
||||
async init() {
|
||||
const uuid = strapi.config.get('uuid', false);
|
||||
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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user