mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-22 19:59:02 +03:00
Ensure axios.defaults.baseURL is set when accessing login form. Drop `/api` prefix in login form's `axios.post` call, since `/api` is part of the baseURL. Redirect to subpath on succesful authentication. Prepend subpath to default logout url. Fixes #12814
12 lines
281 B
TypeScript
12 lines
281 B
TypeScript
import React from "react";
|
|
import ReactDOM from "react-dom/client";
|
|
import LoginPage from "@/pages/LoginPage.tsx";
|
|
import "@/api";
|
|
import "./index.css";
|
|
|
|
ReactDOM.createRoot(document.getElementById("root")!).render(
|
|
<React.StrictMode>
|
|
<LoginPage />
|
|
</React.StrictMode>,
|
|
);
|