Adds scaffolding for the FolderController
This commit is contained in:
55
Lactose/Controllers/FolderController.cs
Normal file
55
Lactose/Controllers/FolderController.cs
Normal file
@@ -0,0 +1,55 @@
|
||||
using Lactose.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Lactose.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Authorize(Roles = "Admin")]
|
||||
[Route("api/[controller]")]
|
||||
public class FolderController(
|
||||
ILogger<FolderController> logger,
|
||||
LactoseAuthService authService,
|
||||
IFolderRepository folderRepository
|
||||
) : ControllerBase {
|
||||
|
||||
[HttpPut]
|
||||
[Authorize(Roles = "Admin")]
|
||||
public ActionResult Create([FromBody] FolderCreateDto folderCreateDto) {
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[HttpGet("{id}")]
|
||||
[Authorize(Roles = "Admin")]
|
||||
public ActionResult<FolderFullDto> Get([FromRoute] Guid id) {
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[HttpPost("{id}")]
|
||||
[Authorize(Roles = "Admin")]
|
||||
public ActionResult Update([FromRoute] Guid id, [FromBody] FolderUpdateDto folderUpdateDto) {
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[HttpDelete("{id}")]
|
||||
[Authorize(Roles = "Admin")]
|
||||
public ActionResult Delete([FromRoute] Guid id) {
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
public class FolderUpdateDto {
|
||||
}
|
||||
|
||||
public class FolderCreateDto {
|
||||
}
|
||||
|
||||
public class FolderFullDto {
|
||||
|
||||
}
|
||||
|
||||
public interface IFolderRepository {
|
||||
}
|
||||
|
||||
public class FolderRepository : IFolderRepository {
|
||||
}
|
||||
Reference in New Issue
Block a user