feat: set route path /robots

This commit is contained in:
amhsirak
2025-01-09 23:18:18 +05:30
parent 7cba1b7c05
commit c161e189f7

View File

@@ -54,8 +54,8 @@ export const PageWrapper = () => {
{!browserId && <NavBar recordingName={recordingName} isRecording={!!browserId} />}
<Routes>
<Route element={<UserRoute />}>
<Route path="/" element={<Navigate to="/recordings" replace />} />
<Route path="/recordings" element={<MainPage handleEditRecording={handleEditRecording} initialContent="recordings" />} />
<Route path="/" element={<Navigate to="/robots" replace />} />
<Route path="/robots" element={<MainPage handleEditRecording={handleEditRecording} initialContent="robots" />} />
<Route path="/runs" element={<MainPage handleEditRecording={handleEditRecording} initialContent="runs" />} />
<Route path="/proxy" element={<MainPage handleEditRecording={handleEditRecording} initialContent="proxy" />} />
<Route path="/apikey" element={<MainPage handleEditRecording={handleEditRecording} initialContent="apikey" />} />