Skip to content

Commit

Permalink
chore: moving legacy redirect to utils directory
Browse files Browse the repository at this point in the history
  • Loading branch information
holloway committed Dec 17, 2024
1 parent 40e24ce commit 66f43d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/server/routes/search/rfc_search.php.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { translateParamsString } from './rfc-search-utils'
import { translateParamsString } from '~/utilities/legacy-search-redirect'
import { SEARCH_PATH } from '~/utilities/url'

const HTTP_301_PERMANENT_REDIRECT = 301
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @vitest-environment nuxt
import { test, expect, describe, beforeEach, afterEach, vi } from 'vitest'
import { translateParamsString } from './rfc-search-utils'
import { translateParamsString } from './legacy-search-redirect'

test('translateParamsString: just a redirect', () => {
expect(translateParamsString('?')).toEqual('')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { z } from 'zod'
import { DateTime } from 'luxon'
import type { Statuses, Streams, Areas } from '../../../stores/search'
import type { SearchParamsSchema } from '../../api/search'
import type { Statuses, Streams, Areas } from '../stores/search'
import type { SearchParamsSchema } from '../server/api/search'

const LegacySearchParamsSchema = z.object({
rfc: z.string().optional(),
Expand Down

0 comments on commit 66f43d0

Please sign in to comment.