shop info

This commit is contained in:
Tizian.Breuch
2025-08-12 11:07:15 +02:00
parent 0a43b1d7e8
commit 1692fe198e
13 changed files with 387 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
// src/Webshop.Api/Controllers/Public/ShopInfoController.cs
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using Webshop.Application.DTOs.Shop;
using Webshop.Application.Services.Public;
namespace Webshop.Api.Controllers.Public
{
[ApiController]
[Route("api/v1/public/[]controller")]
[AllowAnonymous]
public class ShopInfoController : ControllerBase
{
private readonly IShopInfoService _shopInfoService;
public ShopInfoController(IShopInfoService shopInfoService)
{
_shopInfoService = shopInfoService;
}
[HttpGet]
public async Task<ActionResult<PublicShopInfoDto>> GetPublicShopInfo()
{
var info = await _shopInfoService.GetPublicShopInfoAsync();
return Ok(info);
}
}
}