(name: string)
| 20 | } |
| 21 | |
| 22 | export async function createApp(name: string): Promise<Application> { |
| 23 | const app = await api.post<Application>("/_apps", { name }); |
| 24 | trackEvent("app_created", { name }); |
| 25 | |
| 26 | return app; |
| 27 | } |
| 28 | |
| 29 | export async function updateApp(appId: string, name: string, icon: string): Promise<Application> { |
| 30 | return await api.put<Application>(`/_apps/${appId}`, { name, icon }); |
no outgoing calls
no test coverage detected