feat: add /editor/create to create a flow
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
19a8323058
commit
d06ce4958e
@@ -1,22 +1,26 @@
|
||||
import { Route, Routes, Navigate } from 'react-router-dom';
|
||||
import Layout from 'components/Layout';
|
||||
import Applications from 'pages/Applications';
|
||||
import Application from 'pages/Application';
|
||||
import Flows from 'pages/Flows';
|
||||
import Explore from 'pages/Explore';
|
||||
import Editor from 'pages/Editor';
|
||||
import * as URLS from 'config/urls';
|
||||
|
||||
export default (
|
||||
<Routes>
|
||||
<Route path={URLS.FLOWS} element={<Flows />} />
|
||||
<Route path={URLS.FLOWS} element={<Layout><Flows /></Layout>} />
|
||||
|
||||
<Route path={`${URLS.APPS}/*`} element={<Applications />} />
|
||||
<Route path={`${URLS.APPS}/*`} element={<Layout><Applications /></Layout>} />
|
||||
|
||||
<Route path={URLS.EXPLORE} element={<Explore />} />
|
||||
<Route path={URLS.EXPLORE} element={<Layout><Explore /></Layout>} />
|
||||
|
||||
<Route path={`${URLS.APP_PATTERN}/*`} element={<Application />} />
|
||||
<Route path={`${URLS.APP_PATTERN}/*`} element={<Layout><Application /></Layout>} />
|
||||
|
||||
<Route path={`${URLS.EDITOR}/*`} element={<Editor />} />
|
||||
|
||||
<Route path="/" element={<Navigate to={URLS.FLOWS} />} />
|
||||
|
||||
<Route element={<div>404</div>} />
|
||||
<Route element={<Layout><div>404</div></Layout>} />
|
||||
</Routes>
|
||||
);
|
||||
|
Reference in New Issue
Block a user