improve type definitions for v2 method

The method has to be lowercase because it is used as an index to get
the respective method of the router.
This commit is contained in:
Johann150 2022-12-12 21:43:44 +01:00
parent 7fd6ea563f
commit 0d15b74193
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -711,7 +711,7 @@ export interface IEndpointMeta {
/**
* HTTP verb this endpoint supports
*/
readonly method: string;
readonly method: 'get' | 'put' | 'post' | 'patch' | 'delete';
/**
* Path alias for v2 endpoint