#45 API ぼちぼち

This commit is contained in:
2025-06-18 06:20:51 +09:00
parent ceeefa9b7c
commit c6f7e8a696
5 changed files with 30 additions and 1 deletions
+2
View File
@@ -11,6 +11,7 @@ import WikiPage from '@/pages/WikiPage'
import WikiNewPage from '@/pages/WikiNewPage'
import WikiEditPage from '@/pages/WikiEditPage'
import WikiDetailPage from '@/pages/WikiDetailPage'
import WikiHistoryPage from '@/pages/WikiHistoryPage'
import { API_BASE_URL } from '@/config'
import axios from 'axios'
import { Toaster } from '@/components/ui/toaster'
@@ -66,6 +67,7 @@ export default () => {
<Route path="/wiki/:name" element={<WikiDetailPage />} />
<Route path="/wiki/new" element={<WikiNewPage />} />
<Route path="/wiki/:id/edit" element={<WikiEditPage />} />
<Route path="/wiki/changes" element={<WikiHistoryPage />} />
</Routes>
</div>
</div>
+1 -1
View File
@@ -130,7 +130,7 @@ const TopNav: React.FC = ({ user, setUser }: Props) => {
<>
<Separator />
<Link to={`/posts?tags=${ location.pathname.split ('/')[2] }`} className={subClass}>稿</Link>
<Link to={`/wiki/${ wikiId || location.pathname.split ('/')[2] }/history`} className={subClass}></Link>
<Link to={`/wiki/changes?id=${ wikiId }`} className={subClass}></Link>
<Link to={`/wiki/${ wikiId || location.pathname.split ('/')[2] }/edit`} className={subClass}></Link>
</>}
</div>)
+8
View File
@@ -0,0 +1,8 @@
import MainArea from '@/components/layout/MainArea'
export default () => {
return (
<MainArea>
</MainArea>)
}