mirror of
https://github.com/spacebarchat/server.git
synced 2026-06-07 13:11:43 +00:00
CDN-CS: support passing a bin path as cdn worker -> forks a new proc
This commit is contained in:
@@ -13,7 +13,7 @@ public class ImagesAndStickerController(LruFileCache lfc, IFileSource fs, CdnWor
|
||||
[HttpGet("/stickers/{id}.{ext}")]
|
||||
[HttpGet("/emojis/{id}")]
|
||||
[HttpGet("/emojis/{id}.{ext}")]
|
||||
public async Task<IActionResult> GetUserAvatar(string id, string ext = "png") {
|
||||
public async Task<IActionResult> GetUserAvatar(string id, string ext = "webp") {
|
||||
DiscordImageResizeParams resizeParams = Request.GetResizeParams();
|
||||
var cacheKey = Request.Path + resizeParams.ToSerializedName();
|
||||
LruFileCache.Entry? entry;
|
||||
|
||||
Reference in New Issue
Block a user