mirror of
https://github.com/He4eT/simple-spaceapi.git
synced 2026-05-05 01:47:24 +00:00
SpaceAPI: projects
This commit is contained in:
parent
c8112d608f
commit
80793d0d76
1 changed files with 7 additions and 0 deletions
|
|
@ -197,6 +197,13 @@ export default ({ strapi }: { strapi: Core.Strapi }) => ({
|
||||||
|
|
||||||
/* */
|
/* */
|
||||||
|
|
||||||
|
if (!isEmpty(hackspace.projects)) {
|
||||||
|
result.projects = hackspace.projects
|
||||||
|
.map(({url}) => url);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* */
|
||||||
|
|
||||||
return ctx.send(result);
|
return ctx.send(result);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue