refactor: rename functions

This commit is contained in:
radishzzz 2025-03-14 14:23:35 +00:00
parent ca1abd28c1
commit f5526f8622
17 changed files with 46 additions and 49 deletions

View file

@ -1,6 +1,6 @@
import type { APIContext } from 'astro'
import themeConfig from '@/config'
import { generateMultiLangPaths } from '@/i18n/route'
import { getMultiLangRoutes } from '@/i18n/route'
import { generateRSS } from '@/utils/rss'
const { moreLocales } = themeConfig.global
@ -10,7 +10,7 @@ type SupportedLanguage = typeof moreLocales[number]
// Generate static paths for all supported languages
export function getStaticPaths() {
return generateMultiLangPaths()
return getMultiLangRoutes()
}
export async function GET({ params }: APIContext) {