MCPcopy Create free account
hub / github.com/core7s/react-design-editor / getTemplateById

Method getTemplateById

src/services/api.ts:156–165  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

154 }
155
156 getTemplateById(id: string): Promise<any> {
157 return new Promise(async (resolve, reject) => {
158 try {
159 const { data } = await this.base.get(`/templates/${id}`)
160 resolve(data)
161 } catch (err) {
162 reject(err)
163 }
164 })
165 }
166 //CREATIONS
167
168 createCreation(props: Partial<Template>): Promise<Template> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected