Skip to content

Commit

Permalink
feat: add timezones endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Brecht committed Jan 27, 2021
1 parent 8b1cb5e commit 474b2de
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/resources/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1459,6 +1459,21 @@ Object {
"resource": "timetable",
"sub_resources": Object {},
},
"timezones": Object {
"allowed_includes": Array [],
"allowed_methods": Array [
"*",
],
"deprecated": false,
"filters": Array [
"page",
"per_page",
],
"headers": Object {},
"requires_domain_map": false,
"resource": "timezones",
"sub_resources": Object {},
},
"unavailability": Object {
"allowed_includes": Array [],
"allowed_methods": Array [
Expand Down
1 change: 1 addition & 0 deletions src/resources/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ export * from './subjectCategories'
export * from './subjectCoverageRegions'
export * from './subjects'
export * from './timetable'
export * from './timezones'
export * from './unavailability'
export * from './users'
6 changes: 6 additions & 0 deletions src/resources/timezones.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import createResourceDescription from './util/createResourceDescription'
import { HTTP_VERB_GET } from '../constants'

export const timezones = createResourceDescription('timezones', {
allowed_methods: [HTTP_VERB_GET],
})

0 comments on commit 474b2de

Please sign in to comment.