Skip to content

Commit

Permalink
Replace dash with underscore in /bff/v1/prior_notifications route
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed Mar 24, 2024
1 parent 00becb2 commit ab77869
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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.RestController

@RestController
@RequestMapping("/bff/v1/prior-notifications")
@RequestMapping("/bff/v1/prior_notifications")
@Tag(name = "Prior notifications endpoints")
class PriorNotificationController(
private val getPriorNotifications: GetPriorNotifications,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { getUtcDateInMultipleFormats } from '../../utils/getUtcDateInMultipleFor
import type { PriorNotification } from '@features/PriorNotification/PriorNotification.types'

context('Side Window > Prior Notification List > Filter Bar', () => {
const apiPathBase = '/bff/v1/prior-notifications?'
const apiPathBase = '/bff/v1/prior_notifications?'

it('Should filter prior notifications by countries', () => {
openSideWindowPriorNotificationList()
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/features/PriorNotification/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ export const priorNotificationApi = monitorfishApi.injectEndpoints({
endpoints: builder => ({
getPriorNotifications: builder.query<PriorNotification.PriorNotification[], LogbookMessage.ApiFilter>({
providesTags: () => [{ type: 'Notices' }],
query: filter => getUrlOrPathWithQueryParams(`/prior-notifications`, filter)
query: filter => getUrlOrPathWithQueryParams(`/prior_notifications`, filter)
}),

getPriorNotificationTypes: builder.query<string[], void>({
providesTags: () => [{ type: 'Notices' }],
query: () => '/prior-notifications/types'
query: () => '/prior_notifications/types'
})
})
})
Expand Down

0 comments on commit ab77869

Please sign in to comment.