Skip to content

Commit

Permalink
PRSD-NONE: move all path segments to UrlSegmentConstants.kt (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasminConterioSW authored Feb 26, 2025
1 parent 5626f12 commit f390839
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 19 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,12 @@ package uk.gov.communities.prsdb.webapp.constants

const val UPDATE_PATH_SEGMENT = "update"
const val DETAILS_PATH_SEGMENT = "details"
const val LANDLORD_DETAILS_SEGMENT = "landlord-details"
const val LANDLORD_DETAILS_PATH_SEGMENT = "landlord-details"
const val LOCAL_AUTHORITY_PATH_SEGMENT = "local-authority"
const val LANDLORD_PATH_SEGMENT = "landlord"
const val PROPERTY_PATH_SEGMENT = "property"
const val DASHBOARD_PATH_SEGMENT = "dashboard"
const val SEARCH_PATH_SEGMENT = "search"

// TODO PRSD-670: Set to landlord dashboard
val LANDLORD_DASHBOARD_URL = "/$LANDLORD_PATH_SEGMENT/$DASHBOARD_PATH_SEGMENT"
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestParam
import org.springframework.web.server.ResponseStatusException
import uk.gov.communities.prsdb.webapp.constants.DETAILS_PATH_SEGMENT
import uk.gov.communities.prsdb.webapp.constants.LANDLORD_DETAILS_SEGMENT
import uk.gov.communities.prsdb.webapp.constants.LANDLORD_DETAILS_PATH_SEGMENT
import uk.gov.communities.prsdb.webapp.constants.UPDATE_PATH_SEGMENT
import uk.gov.communities.prsdb.webapp.exceptions.PrsdbWebException
import uk.gov.communities.prsdb.webapp.forms.journeys.PageData
Expand Down Expand Up @@ -140,7 +140,7 @@ class LandlordDetailsController(
}

companion object {
const val LANDLORD_DETAILS_ROUTE = "/$LANDLORD_DETAILS_SEGMENT"
const val LANDLORD_DETAILS_ROUTE = "/$LANDLORD_DETAILS_PATH_SEGMENT"
const val UPDATE_ROUTE = "$LANDLORD_DETAILS_ROUTE/$UPDATE_PATH_SEGMENT"
}
}

0 comments on commit f390839

Please sign in to comment.