mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
17 lines
383 B
TypeScript
17 lines
383 B
TypeScript
|
|
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 {}
|