mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00

* feat(api): add auth * feat(web): add auth and refactor * refactor(web): baseurl * feat: add autobrrctl cli for user creation * build: move static assets * refactor(web): auth guard and routing * refactor: rename var * fix: remove subrouter * build: update default config
17 lines
No EOL
313 B
TypeScript
17 lines
No EOL
313 B
TypeScript
import { atom } from "recoil";
|
|
|
|
export const configState = atom({
|
|
key: "configState",
|
|
default: {
|
|
host: "127.0.0.1",
|
|
port: 8989,
|
|
base_url: "",
|
|
log_path: "",
|
|
log_level: "DEBUG",
|
|
}
|
|
});
|
|
|
|
export const isLoggedIn = atom({
|
|
key: 'isLoggedIn',
|
|
default: false,
|
|
}) |