From 714ee90c9e7c3f88599e78576c90b8aa2d625b18 Mon Sep 17 00:00:00 2001 From: Simon Van den Broeck Date: Mon, 3 May 2021 12:13:00 +0200 Subject: [PATCH] feat(subjects): allow languages include on options endpoint --- src/resources/__snapshots__/index.test.js.snap | 5 ++++- src/resources/subjects.js | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/resources/__snapshots__/index.test.js.snap b/src/resources/__snapshots__/index.test.js.snap index f1edfa00..bebdc96b 100644 --- a/src/resources/__snapshots__/index.test.js.snap +++ b/src/resources/__snapshots__/index.test.js.snap @@ -1503,7 +1503,10 @@ Object { "sub_resources": Object {}, }, "options": Object { - "allowed_includes": Array [], + "allowed_includes": Array [ + "languages", + "languages.translations", + ], "allowed_methods": Array [ "*", ], diff --git a/src/resources/subjects.js b/src/resources/subjects.js index 4f77a691..a49cad8c 100644 --- a/src/resources/subjects.js +++ b/src/resources/subjects.js @@ -41,7 +41,9 @@ export const subjects = createResourceDescription( }, { languages: createResourceDescription('languages'), - options: createResourceDescription('options'), + options: createResourceDescription('options', { + includes: ['languages', 'languages.translations'], + }), } ), timetable: createResourceDescription('timetable', {