diff --git a/src/models/utils/ref.ts b/src/models/utils/ref.ts index 818e3c6..a78afeb 100644 --- a/src/models/utils/ref.ts +++ b/src/models/utils/ref.ts @@ -47,7 +47,7 @@ export class Ref extends String { static restResolver(endpoint: string | URL) { return async (ref: RefString) => { const { type, uuid } = Ref.parse(ref) - const url = new URL(`${type}/${uuid}`, endpoint) + const url = new URL(`${type}s/${uuid}`, endpoint) const response = await fetch(url) const json = await response.json()