postfixfix
This commit is contained in:
parent
075072cd36
commit
6ed601472b
|
@ -1,6 +1,4 @@
|
|||
// /:slug -> /@slug
|
||||
// https://vike.dev/routing
|
||||
// https://vite-plugin-ssr.com/routing
|
||||
// https://www.npmjs.com/package/@nanostores/router
|
||||
import { ROUTES } from '../stores/router'
|
||||
|
||||
export const getServerRoute = (clientRoute: string = ROUTES) => clientRoute.replaceAll(':', '@')
|
||||
export const getServerRoute = (clientRoute: string) => clientRoute.replaceAll(':', '@')
|
||||
|
|
Loading…
Reference in New Issue
Block a user