feat: clash/ss suport
This commit is contained in:
@@ -50,9 +50,9 @@ export const auth = {
|
||||
// Subscriptions
|
||||
export const subscriptions = {
|
||||
list: () => request<any[]>('/subscriptions'),
|
||||
create: (name: string, url: string) => request<{ id: number }>('/subscriptions', {
|
||||
create: (name: string, url: string, urlClash?: string, urlSsr?: string) => request<{ id: number }>('/subscriptions', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ name, url }),
|
||||
body: JSON.stringify({ name, url, url_clash: urlClash || null, url_ssr: urlSsr || null }),
|
||||
}),
|
||||
update: (id: number, data: any) => request<{ ok: boolean }>(`/subscriptions/${id}`, {
|
||||
method: 'PUT',
|
||||
|
||||
Reference in New Issue
Block a user