From 8f9e78fab7ece5a1a3105d2aaeec30ce218adfad Mon Sep 17 00:00:00 2001 From: Andrii Balitskyi <10balian10@gmail.com> Date: Mon, 14 Oct 2024 18:40:08 +0200 Subject: [PATCH] Fix semantic method priority order --- src/lib/blueprint.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/blueprint.ts b/src/lib/blueprint.ts index 437bbce..38c9a98 100644 --- a/src/lib/blueprint.ts +++ b/src/lib/blueprint.ts @@ -918,7 +918,7 @@ export const getSemanticMethod = (methods: Method[]): Method => { return methods[0]! } - const priorityOrder: Method[] = ['PUT', 'PATCH', 'POST', 'GET', 'DELETE'] + const priorityOrder: Method[] = ['PUT', 'PATCH', 'GET', 'DELETE', 'POST'] for (const method of priorityOrder) { if (methods.includes(method)) {