ligun and sogup

This commit is contained in:
john 2025-05-06 16:31:55 +02:00
parent b6633d6f25
commit 4573048a47
24 changed files with 482 additions and 226 deletions

View file

@ -1,13 +1,16 @@
import { BrowserRouter, Route, Routes } from 'react-router'
import HomePage from './pages/HomePage.tsx'
import { PostsService } from './model/posts/postsService.ts'
import { PostsService } from './feed/models/posts/postsService.ts'
import AuthorPage from './pages/AuthorPage.tsx'
import { MediaService } from './model/mediaService.ts'
import { MediaService } from './model/media/mediaService.ts'
import SignupPage from './pages/SignupPage.tsx'
import LoginPage from './pages/LoginPage.tsx'
import { AuthService } from './auth/authService.ts'
function App() {
const postService = new PostsService()
const mediaService = new MediaService()
const authService = new AuthService()
return (
<BrowserRouter>
@ -17,6 +20,7 @@ function App() {
element={<HomePage postsService={postService} mediaService={mediaService} />}
/>
<Route path="/u/:username" element={<AuthorPage postsService={postService} />} />
<Route path="/login" element={<LoginPage authService={authService} />} />
<Route path="/signup/:code?" element={<SignupPage />} />
</Routes>
</BrowserRouter>