(string appId, string email)
| 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")] |
nothing calls this directly
no outgoing calls
no test coverage detected