import { BrowserRouter, Route, Routes } from "react-router-dom";
import { NotFoundPage } from "./modules/error/NotFound";
import { HomePage } from "./modules/homepage/HomePage";
import { RegisterPage } from "./modules/register/RegisterPage";
import { ComicLanding } from "./modules/comic/ComicLanding";
import { ComicReader } from "./modules/comic/ComicReader";

export default function App() {
  return (
    <BrowserRouter>
      <Routes>
        <Route path="/" element={<HomePage />} />
        <Route path="/register/:sessionId" element={<RegisterPage />} />
        <Route path="/comic/:sessionId" element={<ComicLanding />} />
        <Route path="/read/:sessionId" element={<ComicReader />} />
        <Route path="*" element={<NotFoundPage />} />
      </Routes>
    </BrowserRouter>
  )
}