mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 04:50:12 +02:00
Add server-side credential requirement
This commit is contained in:
@@ -11,7 +11,7 @@ const detail = {
|
||||
const list = {
|
||||
body: z.object({}),
|
||||
params: z.object({}),
|
||||
query: z.object({}),
|
||||
query: z.object({ enabled: z.string().optional() }),
|
||||
};
|
||||
|
||||
const deleteServer = {
|
||||
@@ -24,6 +24,7 @@ const update = {
|
||||
body: z.object({
|
||||
legacy: z.boolean().optional(),
|
||||
name: z.string().optional(),
|
||||
noCredential: z.boolean().optional(),
|
||||
password: z.string().optional(),
|
||||
type: z.nativeEnum(ServerType),
|
||||
url: z.string().optional(),
|
||||
@@ -37,6 +38,7 @@ const create = {
|
||||
body: z.object({
|
||||
legacy: z.boolean().optional(),
|
||||
name: z.string(),
|
||||
noCredential: z.boolean().optional(),
|
||||
password: z.string(),
|
||||
type: z.enum([
|
||||
ServerType.JELLYFIN,
|
||||
|
||||
Reference in New Issue
Block a user