anything-llm/frontend/src/utils/paths.js

51 lines
1.0 KiB
JavaScript
Raw Normal View History

import { API_BASE } from "./constants";
2023-06-04 04:28:07 +02:00
export default {
home: () => {
return "/";
},
github: () => {
2023-06-08 23:26:29 +02:00
return "https://github.com/Mintplex-Labs/anything-llm";
2023-06-04 04:28:07 +02:00
},
2023-07-21 21:05:39 +02:00
discord: () => {
2023-06-08 23:26:29 +02:00
return "https://discord.com/invite/6UyHPeGZAC";
2023-06-04 04:28:07 +02:00
},
2023-07-21 21:05:39 +02:00
docs: () => {
return "https://docs.useanything.com";
2023-07-21 21:05:39 +02:00
},
2023-06-04 04:28:07 +02:00
mailToMintplex: () => {
return "mailto:team@mintplexlabs.com";
2023-06-04 04:28:07 +02:00
},
2023-06-08 23:26:29 +02:00
hosting: () => {
return "https://my.mintplexlabs.com/aio-checkout?product=anythingllm";
},
feedback: () => {
return "https://form.typeform.com/to/i0KE3aEW";
2023-06-08 23:26:29 +02:00
},
2023-06-04 04:28:07 +02:00
workspace: {
chat: (slug) => {
return `/workspace/${slug}`;
},
},
exports: () => {
return `${API_BASE.replace("/api", "")}/system/data-exports`;
},
admin: {
system: () => {
return `/admin/system-preferences`;
},
users: () => {
return `/admin/users`;
},
invites: () => {
return `/admin/invites`;
},
workspaces: () => {
return `/admin/workspaces`;
},
chats: () => {
return "/admin/workspace-chats";
},
},
2023-06-04 04:28:07 +02:00
};