mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-17 20:01:33 +02:00
refactor: rename functions
This commit is contained in:
parent
ca1abd28c1
commit
f5526f8622
17 changed files with 46 additions and 49 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue