Skip to content

Commit f9cef4c

Browse files
committed
Respond to /resizer.debug and /resizer.licenses as well, to improve UX
1 parent 9e6c899 commit f9cef4c

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/Imageflow.Server/Internal/MiddlewareOptionsServerBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ private RoutingBuilder CreateRoutes(RoutingBuilder builder, IReadOnlyCollection<
285285
return SmallHttpResponse.NoStore(200, "Imageflow.Server is healthy.");
286286
});
287287

288-
builder.AddEndpoint(Conditions.HasPathSuffix("/imageflow.license"),
288+
builder.AddEndpoint(Conditions.HasPathSuffix("/imageflow.license", "/resizer.license"),
289289
(req) =>
290290
{
291291
var s = new StringBuilder(8096);
@@ -299,4 +299,4 @@ private RoutingBuilder CreateRoutes(RoutingBuilder builder, IReadOnlyCollection<
299299

300300
return builder;
301301
}
302-
}
302+
}

src/Imazen.Routing/Layers/DiagnosticsPage.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ internal class DiagnosticsPage(
4646
: IRoutingEndpoint, IRoutingLayer
4747
{
4848

49-
public static bool MatchesPath(string path) => "/imageflow.debug".Equals(path, StringComparison.Ordinal);
49+
public static bool MatchesPath(string path) => "/imageflow.debug".Equals(path, StringComparison.Ordinal)
50+
|| "/resizer.debug".Equals(path, StringComparison.Ordinal);
5051

5152

5253

@@ -138,4 +139,4 @@ public ValueTask<IInstantPromise> GetInstantPromise(IRequestSnapshot request, Ca
138139

139140
public bool IsBlobEndpoint => false;
140141

141-
}
142+
}

0 commit comments

Comments
 (0)