diff options
author | 2021-10-02 09:24:32 +0200 | |
---|---|---|
committer | 2021-10-02 09:24:32 +0200 | |
commit | bfe8847d72cd0893230f2e654242658214943e61 (patch) | |
tree | 3384b02ebad7a74cbb106ddd95546e0e24ff0bb8 /src/api/index.ts | |
parent | fix: Fix navigation shortcut accelerator for non-macos (fixes #1172) (#2012) (diff) | |
download | ferdium-app-bfe8847d72cd0893230f2e654242658214943e61.tar.gz ferdium-app-bfe8847d72cd0893230f2e654242658214943e61.tar.zst ferdium-app-bfe8847d72cd0893230f2e654242658214943e61.zip |
chore: convert various files from JS to TS (#2010)
Diffstat (limited to 'src/api/index.ts')
-rw-r--r-- | src/api/index.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/api/index.ts b/src/api/index.ts new file mode 100644 index 000000000..73f613da1 --- /dev/null +++ b/src/api/index.ts | |||
@@ -0,0 +1,19 @@ | |||
1 | import AppApi from './AppApi'; | ||
2 | import ServicesApi from './ServicesApi'; | ||
3 | import RecipePreviewsApi from './RecipePreviewsApi'; | ||
4 | import RecipesApi from './RecipesApi'; | ||
5 | import UserApi from './UserApi'; | ||
6 | import LocalApi from './LocalApi'; | ||
7 | import NewsApi from './NewsApi'; | ||
8 | import FeaturesApi from './FeaturesApi'; | ||
9 | |||
10 | export default (server: any, local: any) => ({ | ||
11 | app: new AppApi(server), | ||
12 | services: new ServicesApi(server, local), | ||
13 | recipePreviews: new RecipePreviewsApi(server), | ||
14 | recipes: new RecipesApi(server), | ||
15 | features: new FeaturesApi(server), | ||
16 | user: new UserApi(server, local), | ||
17 | local: new LocalApi(server, local), | ||
18 | news: new NewsApi(server, local), | ||
19 | }); | ||