(id: string)
| 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> { |
nothing calls this directly
no outgoing calls
no test coverage detected