refactor(backend): move all request/response types to a new Dto namespace
This commit is contained in:
parent
f8e6032449
commit
8bd4449804
21 changed files with 310 additions and 316 deletions
|
@ -1,5 +1,6 @@
|
|||
using System.Text.RegularExpressions;
|
||||
using Foxnouns.Backend.Database;
|
||||
using Foxnouns.Backend.Dto;
|
||||
using Foxnouns.Backend.Utils;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.Controllers;
|
||||
|
@ -63,10 +64,6 @@ public partial class InternalController(DatabaseContext db) : ControllerBase
|
|||
return Ok(new RequestDataResponse(userId, template));
|
||||
}
|
||||
|
||||
public record RequestDataRequest(string? Token, string Method, string Path);
|
||||
|
||||
public record RequestDataResponse(Snowflake? UserId, string Template);
|
||||
|
||||
private static RouteEndpoint? GetEndpoint(
|
||||
HttpContext httpContext,
|
||||
string url,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue