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

Method getCreationById

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

Source from the content-addressed store, hash-verified

188 }
189
190 getCreationById(id: string): Promise<any> {
191 return new Promise(async (resolve, reject) => {
192 try {
193 const { data } = await this.base.get(`/creations/${id}`)
194 resolve(data)
195 } catch (err) {
196 reject(err)
197 }
198 })
199 }
200 updateCreation(id: string, props: Partial<Template>): Promise<Template> {
201 return new Promise((resolve, reject) => {
202 this.base

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected