Skip to content

Commit b573234

Browse files
committed
minor notes and addtions to future work
1 parent 88a33a8 commit b573234

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

src/RandomAPI/APIServices/Services/WebhookActionService.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using Microsoft.AspNetCore.Mvc;
22
using RandomAPI.Models;
33
using RandomAPI.Repository;
4-
using static IWebhookService;
54

65
namespace RandomAPI.Services.Webhooks
76
{
@@ -16,7 +15,7 @@ public async Task<IActionResult> HandleGetListenersActionAsync()
1615
return new OkObjectResult(urls);
1716
}
1817

19-
public async Task<IActionResult> HandleGetListenersOfTypeAsync(WebhookType type)
18+
public async Task<IActionResult> HandleGetListenersOfTypeAsync(IWebhookService.WebhookType type)
2019
{
2120
var urls = await base.GetListenersAsync(type);
2221
return new OkObjectResult(urls);
@@ -26,7 +25,7 @@ public async Task<IActionResult> HandleRegisterActionAsync([FromBody] string url
2625
{
2726
if (string.IsNullOrWhiteSpace(url))
2827
return new BadRequestObjectResult("URL cannot be empty.");
29-
//neede both on regisdter and deregister
28+
//needed both on regisdter and deregister
3029
string safeUrlForLog = SanitizeURL(ref url);
3130

3231
await base.AddListenerAsync(url, type);

src/RandomAPI/Program.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@
7878
// TODO:
7979
// - good logging service. rabapp has an event table, i bet i could do something worse
8080

81+
// date idea generator based on a list of ideas and an energy rating. should have a table of all ideas, endpoints to review what exists, and display the most recent selection from both parties
82+
83+
// idea - email checker that notifies me when a meeting time is moved or canceled for rabapp
84+
85+
//
86+
8187
// - AlertGatewayService
8288
// API Endpoint Goal: POST / alert / ingest
8389
// Brief Description(Project Scope): Centralized Notification Hub with Discord Integration.
@@ -97,3 +103,6 @@ public class HealthCheckService { }
97103
// A CRUD API to save and retrieve frequently forgotten code snippets, complex CLI commands, and database queries.
98104
// Supports robust searching by language (python, sql) and customizable tags (regex, lambda, auth).
99105
public class UniversalSnippetService { }
106+
//list of strings as languages
107+
//list of strings as tags
108+
//snippet should probably the language(s), list of tags, the code snippet, and a description?

0 commit comments

Comments
 (0)