Skip to content

Commit

Permalink
Merge pull request #15 from galliumplus/feature/products
Browse files Browse the repository at this point in the history
Feature/products
  • Loading branch information
louisdevie authored May 26, 2023
2 parents 7abdfb7 + 1ac53c5 commit c8eb7d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Service/Controllers/ProductController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ public IActionResult Get(int id)
}

[HttpGet("{id}/image")]
[AllowAnonymous]
[Produces("image/png")]
//[RequiresPermissions(Permissions.SEE_PRODUCTS_AND_CATEGORIES)]
[RequiresPermissions(Permissions.SEE_PRODUCTS_AND_CATEGORIES)]
public IActionResult GetImage(int id)
{
return File(this.productDao.ReadImage(id).Bytes, "image/png");
Expand Down
2 changes: 1 addition & 1 deletion Service/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
app.UseAuthorization();
app.MapControllers();

ServerInfo.Current.Version = "0.2.0.230525 (alpha/test)";
ServerInfo.Current.Version = "0.2.1.2305261536 (alpha/test)";
Console.WriteLine(ServerInfo.Current);

app.Run();

0 comments on commit c8eb7d8

Please sign in to comment.