push (#414)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { Plugin, PluginID } from '@/types/plugin';
|
||||
|
||||
export const getEndpoint = (plugin: Plugin | null) => {
|
||||
if (!plugin) {
|
||||
return 'api/chat';
|
||||
}
|
||||
|
||||
if (plugin.id === PluginID.GOOGLE_SEARCH) {
|
||||
return 'api/google';
|
||||
}
|
||||
|
||||
return 'api/chat';
|
||||
};
|
||||
Reference in New Issue
Block a user