feat(api): enhance IP list management with new entry operations and improved error handling
- Added endpoints for adding and deleting entries in IP lists. - Refactored list creation logic to handle manual list types more effectively. - Updated refresh logic to rebuild manual list entries. - Improved error handling for entry operations to ensure data integrity. - Enhanced response structure for list detail retrieval. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -85,6 +85,7 @@ export const ipOverrideSchema = z.object({
|
||||
|
||||
export const createIpListBodySchema = z.object({
|
||||
name: z.string().min(1),
|
||||
/** Prefer static | json_url | evobgp_community; domains accepted for legacy. */
|
||||
type: ipListTypeSchema,
|
||||
config: z.record(z.string(), z.unknown()).optional(),
|
||||
entries: z.array(z.string()).optional(),
|
||||
|
||||
Reference in New Issue
Block a user