MCPcopy Create free account
hub / github.com/aptabase/aptabase / UnshareApp

Method UnshareApp

src/Features/Apps/AppsController.cs:265–279  ·  view source on GitHub ↗
(string appId, string email)

Source from the content-addressed store, hash-verified

263 }
264
265 [HttpDelete("/api/_apps/{appId}/shares/{email}")]
266 public async Task<IActionResult> UnshareApp(string appId, string email)
267 {
268 var app = await GetOwnedApp(appId);
269 if (app == null)
270 return NotFound();
271
272 await _db.Connection.ExecuteScalarAsync<string>(@"DELETE FROM app_shares WHERE app_id = @appId AND email = @email", new
273 {
274 appId,
275 email,
276 });
277
278 return Ok(new { });
279 }
280
281 // app request endpoints
282 [HttpGet("/api/_apps/{appId}/requests")]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected