From e3eec5b3682d3e305afaba05e5064026e5ff41ec Mon Sep 17 00:00:00 2001 From: Zeping Bai Date: Tue, 29 Nov 2022 12:07:31 +0800 Subject: [PATCH] feat: support purge method --- 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 76d22f9f05..283734887c 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 da3c68dd2f..6ee2d5e48d 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[];