Skip to content

Commit

Permalink
Merge pull request #272 from hmrc/ITSASU-3457
Browse files Browse the repository at this point in the history
ITSASU-3457 - Fix pre-pop API uri
  • Loading branch information
ymabdulahi authored Nov 15, 2024
2 parents 9c82de4 + 753412c commit 83451e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/connectors/PrePopConnector.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import scala.concurrent.{ExecutionContext, Future}
class PrePopConnector @Inject()(http: HttpClient,
appConfig: AppConfig)(implicit ec: ExecutionContext) {

def prepopUrl(nino: String): String = s"${appConfig.prePopURL}/income-tax/pre-pop/$nino"
def prepopUrl(nino: String): String = s"${appConfig.prePopURL}/income-tax/pre-prop/$nino"

def getPrePopData(nino: String)(implicit hc: HeaderCarrier): Future[GetPrePopResponse] = {

Expand Down
2 changes: 1 addition & 1 deletion it/test/helpers/servicemocks/PrePopStub.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import play.api.libs.json.JsValue

object PrePopStub extends WireMockMethods {

private def prePopUri(nino: String): String = s"/income-tax/pre-pop/$nino"
private def prePopUri(nino: String): String = s"/income-tax/pre-prop/$nino"

def stubPrePop(nino: String)
(authorizationHeader: String, environmentHeader: String)
Expand Down

0 comments on commit 83451e0

Please sign in to comment.