From 7a844a8dd913089f2f3d51ba79009b8a31872a99 Mon Sep 17 00:00:00 2001 From: Marco van Kimmenade Date: Tue, 10 Sep 2024 13:29:10 +0200 Subject: [PATCH] Move endpoints to Calendar-Assistant API project (#25) ### Summary & Motivation Move the endpoints from the Core project to the Calendar-Assistant API project because `IEndpoints` are only picked up by Dependency Injection when they reside in the API project. This adjustment ensures that the Dependency Injection system properly registers and manages these endpoints. ### Atomic Changes - Move endpoints to Calendar-Assistant API project ### Checklist - [x] I have added a Label to the pull-request - [x] I have added tests, and done manual regression tests - [x] I have updated the documentation, if necessary --------- Co-authored-by: Marco van Kimmenade --- .../Endpoints}/ConversationsEndpoints.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) rename application/calendar-assistant/{Core/Conversations => Api/Endpoints}/ConversationsEndpoints.cs (84%) diff --git a/application/calendar-assistant/Core/Conversations/ConversationsEndpoints.cs b/application/calendar-assistant/Api/Endpoints/ConversationsEndpoints.cs similarity index 84% rename from application/calendar-assistant/Core/Conversations/ConversationsEndpoints.cs rename to application/calendar-assistant/Api/Endpoints/ConversationsEndpoints.cs index 4ba308b4f..c516bccc6 100644 --- a/application/calendar-assistant/Core/Conversations/ConversationsEndpoints.cs +++ b/application/calendar-assistant/Api/Endpoints/ConversationsEndpoints.cs @@ -1,11 +1,8 @@ -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Routing; using Microsoft.Bot.Builder; using Microsoft.Bot.Builder.Integration.AspNet.Core; using PlatformPlatform.SharedKernel.Endpoints; -namespace Moment42.CalendarAssistant.Conversations; +namespace Moment42.CalendarAssistant.Api.Endpoints; public sealed class ConversationsEndpoints : IEndpoints {