Listory/src/sources/spotify/spotify-auth/spotify-auth.module.ts

17 lines
397 B
TypeScript
Raw Normal View History

2020-02-02 19:21:58 +01:00
import { HttpModule, Module } from "@nestjs/common";
import { SpotifyAuthService } from "./spotify-auth.service";
@Module({
imports: [
HttpModule.registerAsync({
useFactory: () => ({
timeout: 5000,
2020-05-02 17:17:20 +02:00
baseURL: "https://accounts.spotify.com/",
}),
}),
2020-02-02 19:21:58 +01:00
],
providers: [SpotifyAuthService],
2020-05-02 17:17:20 +02:00
exports: [SpotifyAuthService],
2020-02-02 19:21:58 +01:00
})
export class SpotifyAuthModule {}