SSR flow improved

This commit is contained in:
Vincent (Wen Yu) Ge
2024-02-23 00:28:42 -05:00
parent 2f12d4a78f
commit 6bbd8824c8
2 changed files with 94 additions and 11 deletions

View File

@@ -2,6 +2,9 @@ import { OpenAPIV3 } from 'openapi-types';
import { Platform, type Service } from './references';
type SDKMethod = {
'rate-limit': number;
'rate-time': number;
'rate-key': string;
id: string;
title: string;
description: string;
@@ -293,10 +296,13 @@ export async function getService(
parameters: parameters ?? [],
responses: responses ?? [],
method,
url
url,
'rate-limit': operation['x-appwrite']['rate-limit'],
'rate-time': operation['x-appwrite']['rate-time'],
'rate-key': operation['x-appwrite']['rate-key']
});
}
return data;
}