mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 19:43:16 +00:00
Minor CDN-CS work
This commit is contained in:
1 parent
7b9b87f308
commit
d401aea643
6 files changed
+6
-6
No files matched your search
@@ -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