mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-27 22:34:11 +00:00
Minor CDN-CS work
This commit is contained in:
@@ -8,7 +8,7 @@ namespace Spacebar.Cdn.Extensions;
|
||||
|
||||
[ApiController]
|
||||
public class ImageController(LruFileCache lfc, IFileSource fs, CdnWorkerService cws) : ControllerBase {
|
||||
public async Task<IActionResult> GetImage(string path) {
|
||||
protected async Task<IActionResult> GetImage(string path) {
|
||||
DiscordImageResizeParams resizeParams = Request.GetResizeParams();
|
||||
var cacheKey = path + resizeParams.ToSerializedName();
|
||||
if (!Request.Query.Any() || resizeParams.Passthrough) {
|
||||
|
||||
Reference in New Issue
Block a user