This is an automated email from the ASF dual-hosted git repository.
bzp2010 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new 411ae1492 feat: support purge method (#2674)
411ae1492 is described below
commit 411ae1492b80cc5558ba25500e82b94f1c1747cf
Author: Zeping Bai <[email protected]>
AuthorDate: Wed Nov 30 00:46:19 2022 +0800
feat: support purge method (#2674)
---
web/src/pages/Route/constants.ts | 1 +
web/src/typings.d.ts | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/web/src/pages/Route/constants.ts b/web/src/pages/Route/constants.ts
index 76d22f9f0..283734887 100644
--- a/web/src/pages/Route/constants.ts
+++ b/web/src/pages/Route/constants.ts
@@ -24,6 +24,7 @@ export const HTTP_METHOD_OPTION_LIST: HttpMethod[] = [
'OPTIONS',
'CONNECT',
'TRACE',
+ 'PURGE',
];
export const FORM_ITEM_LAYOUT = {
diff --git a/web/src/typings.d.ts b/web/src/typings.d.ts
index da3c68dd2..6ee2d5e48 100644
--- a/web/src/typings.d.ts
+++ b/web/src/typings.d.ts
@@ -76,7 +76,8 @@ type HttpMethod =
| 'HEAD'
| 'PATCH'
| 'CONNECT'
- | 'TRACE';
+ | 'TRACE'
+ | 'PURGE';
type ResponseLabelList = Record<string, string>[];