-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚚(frontend) api/joanie as joanieLegacyClient
We'll implement a api client generated from joanie's openApi schema. The current client needs to change place.
- Loading branch information
1 parent
a55cc68
commit b009ed9
Showing
9 changed files
with
33 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import context from 'utils/context'; | ||
|
||
/** | ||
* Flag which determines if joanie is enabled. | ||
*/ | ||
export const isJoanieEnabled = !!context.joanie_backend; | ||
|
||
export { | ||
default as JoanieLegacyClient, | ||
getResponseBody as getResponseBodyLegacy, | ||
checkStatus as checkStatusLegacy, | ||
getAPIEndpoint as getAPIEndpointLegacy, | ||
getRoutes as getRoutesLegacy, | ||
buildApiUrl as buildApiUrlLegacy, | ||
} from './joanieLegacyClient'; |
2 changes: 1 addition & 1 deletion
2
src/frontend/js/api/joanie.spec.ts → .../js/api/joanie/joanieLegacyClient.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters