INNER CODE UNIT · Go
Endpoints
benbusby/yeetfile · shared/js.go:35
export class Endpoints {`
const endpointsTailJS = `
static format(endpoint: Endpoint, ...args: string[]): string {
let path = endpoint.path;
for (let arg of args) {
path = path.replace("*", arg);
}
return path;
}
}
`
const endpointEntry = `
static %s: Endpoint = {path: "%s"};`