Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
/ js-client Public archive

Commit

Permalink
adding spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
gerald-wicks-unvoid committed Jun 15, 2022
1 parent 9d61747 commit 7a00017
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/functions/templates/get-one-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ export const makeGetOneTemplate = (context: APIContext) => {
return async (templateID: NumericID): Promise<Template> => {
const templatePath = '/api/templates/{templateID}';
const url = buildURL(templatePath, { ...context, protocol: 'http', pathParams: { templateID } });

const req = buildHTTPRequestWithAuthFromContext(context);

const raw = await context.fetch(url, { ...req, method: 'GET' });
const rawRes = await parseJSONResponse<RawTemplate>(raw);
return toTemplate(rawRes);
Expand Down

0 comments on commit 7a00017

Please sign in to comment.