Skip to content

Commit d3244b8

Browse files
committed
frontend REST routes: <id>Url() -> <id>URL()
1 parent 68c41e6 commit d3244b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

codegen/codegentemplates/frontend.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function {{.Name}}({{.TypescriptArgs}}) {
4545
return {{if .Consumes}}postJson<{{if .Consumes}}{{.Consumes.AsTypeScriptType}}{{else}}void{{end}}, {{if .Produces}}{{.Produces.AsTypeScriptType}}{{else}}void{{end}}>{{else}}getJson<{{if .Produces}}{{.Produces.AsTypeScriptType}}{{else}}void{{end}}>{{end}}(` + "`{{.TypescriptPath}}`" + `{{if .Consumes}}, body{{end}});
4646
}
4747
{{if not .Consumes}}
48-
export function {{.Name}}Url({{.TypescriptArgs}}): string {
48+
export function {{.Name}}URL({{.TypescriptArgs}}): string {
4949
return ` + "`{{.TypescriptPath}}`" + `;
5050
}{{end}}
5151
{{end}}

0 commit comments

Comments
 (0)