package ru.fincode.tsudesk.feature.schedule.di

import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import ru.fincode.tsudesk.feature.schedule.data.remote.api.ScheduleApi
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object ScheduleNetworkModule {

    @Provides
    @Singleton
    fun provideScheduleApi(retrofit: Retrofit): ScheduleApi =
        retrofit.create(ScheduleApi::class.java)
}
