Skip to content

Commit

Permalink
Add route to web example API controller
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveDesmond-ca committed Nov 28, 2024
1 parent 63a560f commit 1b7ea7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Examples/Web/Controllers/PiController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace SimpleGPIO.Examples.Web.Controllers;

[ApiController]
[Route("")]
public sealed class PiController : ControllerBase

Check warning on line 9 in Examples/Web/Controllers/PiController.cs

View workflow job for this annotation

GitHub Actions / Code-Quality

This controller has multiple responsibilities and could be split into 3 smaller controllers. (https://rules.sonarsource.com/csharp/RSPEC-6960)

Check warning on line 9 in Examples/Web/Controllers/PiController.cs

View workflow job for this annotation

GitHub Actions / Code-Quality

This controller has multiple responsibilities and could be split into 3 smaller controllers. (https://rules.sonarsource.com/csharp/RSPEC-6960)
{
private readonly IPinInterface _redLED;
Expand Down

0 comments on commit 1b7ea7d

Please sign in to comment.