Skip to content

Commit

Permalink
(#401) users: update api
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintAngeLs committed Sep 1, 2024
1 parent 2bbacfc commit 11064f7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using MiniSpace.Services.Students.Application.Commands;
using MiniSpace.Services.Students.Application.Dto;
using MiniSpace.Services.Students.Application.Queries;
using MiniSpace.Services.Students.Core.Wrappers;
using MiniSpace.Services.Students.Infrastructure;

namespace MiniSpace.Services.Students.Api
Expand All @@ -39,6 +40,8 @@ public static async Task Main(string[] args)
.Get<GetStudentWithVisibilitySettings, StudentWithVisibilitySettingsDto>("students/{studentId}/visibility-settings")
.Get<GetStudentEvents, StudentEventsDto>("students/{studentId}/events")
.Get<GetUserNotificationPreferences, NotificationPreferencesDto>("students/{studentId}/notifications")
.Get<GetUserProfileViews, PagedResponse<UserProfileViewDto>>("profiles/users/{userId}/views/paginated")


.Put<UpdateStudent>("students/{studentId}")
.Put<UpdateUserSettings>("students/{studentId}/settings")
Expand All @@ -51,7 +54,7 @@ public static async Task Main(string[] args)
.Post<CompleteStudentRegistration>("students",
afterDispatch: (cmd, ctx) => ctx.Response.Created($"students/{cmd.StudentId}"))
.Post<UpdateUserNotificationPreferences>("students/{studentId}/notifications")

.Post<ViewUserProfile>("profiles/users/{userProfileId}/view", afterDispatch: (cmd, ctx) => ctx.Response.Ok())
))
.UseLogging()
.Build()
Expand Down

0 comments on commit 11064f7

Please sign in to comment.