Composition API custom method duplicate endpoints

Is there a way to force usage of the HTTP method when creating the list of routes (endpoints)? I currently have to define two endpoints, for example the following is not possible:

  • employees, method GET.
  • employees, method POST

I get an error that an item with the same key is already present in the collection. In the case the distinct HTTP methods is considered part of the key we will not have this error.