basic admin panel stuff

This commit is contained in:
Lapis
2026-06-17 13:39:28 -04:00
parent c20d215ee0
commit 004f1921a6
44 changed files with 3432 additions and 315 deletions
@@ -0,0 +1,17 @@
namespace CannedNet.Admin.Services;
public class ImageUrlService
{
private readonly string _baseUrl;
public ImageUrlService(string baseUrl)
{
_baseUrl = baseUrl.TrimEnd('/');
}
public string GetUrl(string? path)
{
if (string.IsNullOrEmpty(path)) return "";
return $"{_baseUrl}/{path.TrimStart('/')}";
}
}