forked from FoundKeyGang/FoundKey
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:
parent
7fd6ea563f
commit
0d15b74193
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue