Skip to content

Commit

Permalink
feat: add API client to load Spotify IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnrivers committed Mar 14, 2021
1 parent bbcd558 commit ccd747d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/api/spotify.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { SpotifyIds } from 'server/actors/Spotify/models';

export async function loadSpotifyIdsData(): Promise<SpotifyIds> {
return (await import('data/spotify.json')) as SpotifyIds;
}
3 changes: 2 additions & 1 deletion tsconfig-server.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"allowJs": true,
"lib": ["es6", "dom", "esnext"],
"baseUrl": "src",
"esModuleInterop": true
"esModuleInterop": true,
"resolveJsonModule": true
},
"include": ["src"],
"exclude": ["src/client", "src/pages", "node_modules"]
Expand Down

0 comments on commit ccd747d

Please sign in to comment.