Skip to content

Commit

Permalink
fix: is method is set enshure we get an RouteSendEndpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed Nov 16, 2019
1 parent 308a729 commit 8d148c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service-koa.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class ServiceKOA extends Service {
* @return {Class} RouteSendEndpoint if path is present of name starts with '/'
*/
endpointFactoryFromConfig(name, definition) {
if (definition.path || name[0] === '/') {
if (definition.method || definition.path || name[0] === '/') {
return RouteSendEndpoint;
}

Expand Down

0 comments on commit 8d148c3

Please sign in to comment.