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