refactor: use this in static method
This commit is contained in:
@ -6,7 +6,7 @@ namespace Mirea.Api.Endpoint.Common.Services;
|
||||
|
||||
public static class UrlHelper
|
||||
{
|
||||
public static string CurrentDomain(HttpContext context) =>
|
||||
public static string GetCurrentDomain(this HttpContext context) =>
|
||||
context.Request.Headers["X-Forwarded-Host"].FirstOrDefault() ?? context.Request.Host.Host;
|
||||
|
||||
private static string CreateSubPath(string? path)
|
||||
|
Reference in New Issue
Block a user