Skip to content

Commit 513715a

Browse files
authored
Update route-name.ejs
1 parent b6ce68c commit 513715a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/base/route-name.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const methodAliases = {
2323
};
2424
2525
const createCustomOperationId = (method, route, moduleName) => {
26-
const hasPathInserts = /\{(\w){1,}\}/g.test(route);
26+
const hasPathInserts = /\{(\w){1,}\}$/g.test(route);
2727
const splittedRouteBySlash = _.compact(_.replace(route, /\{(\w){1,}\}/g, "").split("/"));
2828
const routeParts = (splittedRouteBySlash.length > 1
2929
? splittedRouteBySlash.splice(1)

0 commit comments

Comments
 (0)