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

Method CancelAppRequest

src/Features/Apps/AppsController.cs:336–349  ·  view source on GitHub ↗
(string appId, [FromQuery] AppRequestPurpose purpose)

Source from the content-addressed store, hash-verified

334 }
335
336 [HttpDelete("/api/_apps/{appId}/requests")]
337 public async Task<IActionResult> CancelAppRequest(string appId, [FromQuery] AppRequestPurpose purpose)
338 {
339 var app = await GetOwnedApp(appId);
340 if (app == null)
341 return NotFound();
342
343 await _db.Connection.ExecuteAsync(@"
344 DELETE FROM app_requests
345 WHERE app_id = @appId AND purpose = @purpose AND status = 'pending'",
346 new { appId, purpose = purpose.ToString() });
347
348 return Ok(new { });
349 }
350
351 [HttpGet("/api/_app-requests")]
352 public async Task<IActionResult> GetIncomingAppRequests([FromQuery] AppRequestPurpose? purpose = null)

Callers

nothing calls this directly

Calls 1

ExecuteAsyncMethod · 0.45

Tested by

no test coverage detected