We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6ce68c commit 513715aCopy full SHA for 513715a
templates/base/route-name.ejs
@@ -23,7 +23,7 @@ const methodAliases = {
23
};
24
25
const createCustomOperationId = (method, route, moduleName) => {
26
- const hasPathInserts = /\{(\w){1,}\}/g.test(route);
+ const hasPathInserts = /\{(\w){1,}\}$/g.test(route);
27
const splittedRouteBySlash = _.compact(_.replace(route, /\{(\w){1,}\}/g, "").split("/"));
28
const routeParts = (splittedRouteBySlash.length > 1
29
? splittedRouteBySlash.splice(1)
0 commit comments