mirror of
https://github.com/He4eT/simple-spaceapi.git
synced 2026-05-04 17:37:24 +00:00
SpaceAPI: linked_spaces
This commit is contained in:
parent
a2d07dfa98
commit
8345021a32
1 changed files with 10 additions and 0 deletions
|
|
@ -228,6 +228,16 @@ export default ({ strapi }: { strapi: Core.Strapi }) => ({
|
|||
|
||||
/* */
|
||||
|
||||
if (!isEmpty(hackspace.linked_spaces)) {
|
||||
result.linked_spaces = hackspace.linked_spaces
|
||||
.map(pickFields([
|
||||
'endpoint',
|
||||
'website',
|
||||
]));
|
||||
}
|
||||
|
||||
/* */
|
||||
|
||||
return ctx.send(result);
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue