mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
feat(api): fetch listens from spotify
This commit is contained in:
parent
f253a66f86
commit
f2065d3f1f
54 changed files with 1180 additions and 256 deletions
16
src/sources/spotify/spotify-api/spotify-api.module.ts
Normal file
16
src/sources/spotify/spotify-api/spotify-api.module.ts
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import { HttpModule, Module } from "@nestjs/common";
|
||||
import { SpotifyApiService } from "./spotify-api.service";
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
HttpModule.registerAsync({
|
||||
useFactory: () => ({
|
||||
timeout: 5000,
|
||||
baseURL: "https://api.spotify.com/"
|
||||
})
|
||||
})
|
||||
],
|
||||
providers: [SpotifyApiService],
|
||||
exports: [SpotifyApiService]
|
||||
})
|
||||
export class SpotifyApiModule {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue