mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-03-13 11:26:18 +01:00
Feat/startup config api (#518)
* feat: add api for config * feat: add data service to client * feat: update client pages with values from config endpoint * test: update tests * Update configurations and documentation to remove VITE_SHOW_GOOGLE_LOGIN_OPTION and change VITE_APP_TITLE to APP_TITLE * include APP_TITLE with startup config * Add test for new route * update backend-review pipeline * comment out test until we can figure out testing routes in CI * update: .env.example --------- Co-authored-by: fuegovic <32828263+fuegovic@users.noreply.github.com>
This commit is contained in:
parent
2da81db440
commit
3634d8691a
25 changed files with 419 additions and 75 deletions
|
|
@ -5,7 +5,6 @@ import Search from './Search';
|
|||
import { Login, Registration, RequestPasswordReset, ResetPassword } from '../components/Auth';
|
||||
import { AuthContextProvider } from '../hooks/AuthContext';
|
||||
import ApiErrorWatcher from '../components/Auth/ApiErrorWatcher';
|
||||
import { ALLOW_REGISTRATION } from '../utils/envConstants';
|
||||
|
||||
const AuthLayout = () => (
|
||||
<AuthContextProvider>
|
||||
|
|
@ -17,7 +16,7 @@ const AuthLayout = () => (
|
|||
export const router = createBrowserRouter([
|
||||
{
|
||||
path: 'register',
|
||||
element: ALLOW_REGISTRATION ? <Registration /> : <Navigate to="/login" replace={true} />
|
||||
element: <Registration />
|
||||
},
|
||||
{
|
||||
path: 'forgot-password',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue