Skip to content

Commit f23adf4

Browse files
committed
build(update-endpoints): use new /{var}/ routes (instead of /:var/
1 parent c5c1d6e commit f23adf4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

scripts/update-endpoints/types.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,6 @@ async function getRoutes() {
146146
const idName = endpoint.id;
147147
const url = endpoint.url
148148
.toLowerCase()
149-
// replace {param} with :param
150-
.replace(/\{([^?][^}]+)}/g, ":$1")
151149
// stecial case for "Upload a release asset": remove ":origin" prefix
152150
.replace(/^:origin/, "");
153151

0 commit comments

Comments
 (0)