feat: restructure routing and layouts for admin and news sections, update cookie paths

This commit is contained in:
Ardeman
2025-02-28 11:49:51 +08:00
parent 4b8fc0721e
commit 23e3493a3f
30 changed files with 55 additions and 64 deletions
+5 -3
View File
@@ -1,5 +1,7 @@
import { redirect } from 'react-router'
import { NewsPage } from '~/pages/news'
export async function loader() {
return redirect('/news')
const NewsIndexLayout = () => {
return <NewsPage />
}
export default NewsIndexLayout