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