23 lines
616 B
C#
23 lines
616 B
C#
// Auto-generiert von CreateWebshopFiles.ps1
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Webshop.Api.Controllers.Customer
|
|
{
|
|
[ApiController]
|
|
[Route("api/v1/customer/[controller]")]
|
|
[Authorize(Roles = "Customer")]
|
|
public class OrdersController : ControllerBase
|
|
{
|
|
[HttpGet("my-orders")]
|
|
public async Task<IActionResult> GetMyOrders()
|
|
{
|
|
return Ok(new { Message = "Dies ist Ihr persönlicher Bestellverlauf (Platzhalter)." });
|
|
}
|
|
}
|
|
}
|