mirror of
https://github.com/zoriya/flood.git
synced 2026-06-08 04:41:03 +00:00
flood: rearrange, remove misc files and reformat
This commit is contained in:
@@ -8,7 +8,10 @@ import type {AuthMethod} from '../Auth';
|
||||
// All auth requests are schema validated to ensure security.
|
||||
|
||||
// POST /api/auth/authenticate
|
||||
export const authAuthenticationSchema = credentialsSchema.pick({username: true, password: true});
|
||||
export const authAuthenticationSchema = credentialsSchema.pick({
|
||||
username: true,
|
||||
password: true,
|
||||
});
|
||||
export type AuthAuthenticationOptions = Required<zodInfer<typeof authAuthenticationSchema>>;
|
||||
|
||||
// POST /api/auth/authenticate - success response
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export enum AccessLevel {
|
||||
USER = 5,
|
||||
ADMINISTRATOR = 10,
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export const SUPPORTED_CLIENTS = ['qBittorrent', 'rTorrent', 'Transmission'] as const;
|
||||
|
||||
Reference in New Issue
Block a user