Skip to content

Commit 3fe80bd

Browse files
committed
fix(gen:endpoint): fix some urls failing for api creation
1 parent 163cacf commit 3fe80bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

endpoint/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ Generator.prototype.askFor = function askFor() {
2323
];
2424

2525
this.prompt(prompts, function (props) {
26+
if(props.route.charAt(0) !== '/') {
27+
props.route = '/' + props.route;
28+
}
29+
2630
this.route = props.route;
2731
done();
2832
}.bind(this));

0 commit comments

Comments
 (0)