mirror of
https://github.com/docmost/docmost.git
synced 2025-11-20 12:01:08 +10:00
fix tree
* fix tree root element ref * fix tree node toggle bug * fix tree node reparenting on the backend * highlight active home menu on the sidebar
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import axios, { AxiosInstance } from "axios";
|
||||
import Cookies from "js-cookie";
|
||||
import Routes from "@/lib/routes";
|
||||
import Routes from "@/lib/app-route.ts";
|
||||
|
||||
const baseUrl = import.meta.env.DEV ? "http://localhost:3000" : "";
|
||||
const api: AxiosInstance = axios.create({
|
||||
|
||||
9
apps/client/src/lib/app-route.ts
Normal file
9
apps/client/src/lib/app-route.ts
Normal file
@ -0,0 +1,9 @@
|
||||
const APP_ROUTE = {
|
||||
HOME: "/home",
|
||||
AUTH: {
|
||||
LOGIN: "/login",
|
||||
SIGNUP: "/signup",
|
||||
},
|
||||
};
|
||||
|
||||
export default APP_ROUTE;
|
||||
@ -1,9 +0,0 @@
|
||||
const ROUTES = {
|
||||
HOME: '/home',
|
||||
AUTH: {
|
||||
LOGIN: '/login',
|
||||
SIGNUP: '/signup',
|
||||
},
|
||||
};
|
||||
|
||||
export default ROUTES;
|
||||
Reference in New Issue
Block a user