Skip to content

Commit

Permalink
[REFACTOR] : sign api 상수화 / #55
Browse files Browse the repository at this point in the history
  • Loading branch information
sohyun127 committed Oct 31, 2023
1 parent 479ed34 commit 3b1447a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions data-remote/src/main/java/com/data_remote/api/SignApiService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@ package com.data_remote.api

import com.velogm.data.dto.response.TokenResponseDto
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

interface SignApiService {
@GET("/sign-api/google-login")

companion object {
const val SIGN_API = "sign-api"
const val GOOGLE_LOGIN = "google-login"
const val CODE = "code"
}

@GET("/$SIGN_API/$GOOGLE_LOGIN")
suspend fun getGoogleLogin(
@Query("code") code: String
@Query(CODE) code: String
): TokenResponseDto
}

0 comments on commit 3b1447a

Please sign in to comment.