Commit Graph

13 Commits

Author SHA1 Message Date
Viktor Sarström 46632691bf fix: 🐛 Fixes TS config + lint etc 2021-11-12 13:46:25 +01:00
Viktor Sarström 9d213413be fix: 🐛 Merge with master 2021-11-09 10:53:07 +01:00
Emil Lindqvist 2162221322 Add interface for hjarntorget and skkolplattformen 2021-11-09 10:28:48 +01:00
Emil Lindqvist aeeab7feb6 Rename skolplattfomen api 2021-11-09 10:27:38 +01:00
Emil Lindqvist a9603422c8 Extract common code from api-skolplattformen
Common code consists of shared types, some helpers along with a few
common infrastructure code for fetching data and handling cookies etc.
Shortly a common `Api` interface will be introduced that  both
skolplattformen and hjarntorget will adhere to initially.
2021-11-09 10:25:31 +01:00
Andreas Eriksson beaf991342 Add check for correct set-cookie header in response
This way we can detect when the api returns data for the wrong child. We then throw an exception.
In the app the api-hooks library retires requests when errors occur so we try again and hope
that correct data is returned.
2021-10-30 15:23:40 +02:00
Emil Lindqvist 456e1a520c Make run scripts work with new structure 2021-10-11 10:50:23 +02:00
Emil Lindqvist 52c4c03665 Add interface for hjarntorget and skkolplattformen 2021-10-11 09:57:22 +02:00
Emil Lindqvist 85ffe3e40d Rename skolplattfomen api 2021-10-11 09:45:36 +02:00
Emil Lindqvist 214fa44bc6 Extract common code from api-skolplattformen
Common code consists of shared types, some helpers along with a few
common infrastructure code for fetching data and handling cookies etc.
Shortly a common `Api` interface will be introduced that  both
skolplattformen and hjarntorget will adhere to initially.
2021-10-10 21:09:14 +02:00
Jonathan Edenström 169b5365e9 fix: lint and prettier fixes 2021-10-06 22:47:50 +02:00
Jonathan Edenström 18ed8620af fix: rename and fix imports 2021-10-05 17:44:14 +02:00
Erik Hellman 8832990524 Moved to libs directory 2021-10-03 11:32:39 +02:00
Renamed from lib/api.ts (Browse further)