Skip to content

Commit

Permalink
specify return type
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas-Valkenburg committed Jun 17, 2024
1 parent 7fe4724 commit ec25728
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Talpa Api/Controllers/Api/CustomizationController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ public class CustomizationController(Context context) : ControllerBase
private readonly List<string> AllowedExtensions = [".jpg", ".jpeg", ".png", ".gif", ".bmp", ".webp"];

[HttpGet]
public IActionResult GetCustomization()
public ActionResult<Customization?> GetCustomization()
{
return Ok(context.Customization.FirstOrDefault());
}

[HttpPost]
public IActionResult UpdateCustomization(string? name, bool? gradient, string? color1, string? color2, string? color3,
public ActionResult UpdateCustomization(string? name, bool? gradient, string? color1, string? color2, string? color3,
IFormFile? image)
{
var currentCustomization = context.Customization.FirstOrDefault();
Expand Down

0 comments on commit ec25728

Please sign in to comment.