diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-11-24 18:19:06 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2024-11-24 18:19:06 -0600 |
| commit | 32ce0640657dfe2f54ca81f47258d6301e006546 (patch) | |
| tree | 772742c76dab7421aafc98a5c69d550673003d48 /src/slskd/Events | |
| parent | ac1dae488ebc9474461064b979d8c2a03da17a82 (diff) | |
| download | slskd-32ce0640657dfe2f54ca81f47258d6301e006546.tar.gz | |
include type in route template
Diffstat (limited to 'src/slskd/Events')
| -rw-r--r-- | src/slskd/Events/API/EventsController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Events/API/EventsController.cs b/src/slskd/Events/API/EventsController.cs index 92748450..ad7cd93e 100644 --- a/src/slskd/Events/API/EventsController.cs +++ b/src/slskd/Events/API/EventsController.cs @@ -105,7 +105,7 @@ public class EventsController : ControllerBase /// <response code="403">Authentication is valid but not sufficient to access this endpoint.</response> /// <response code="500">An unexpected error is encountered.</response> /// <response code="200">The request completed successfully.</response> - [HttpPost("", Name = nameof(RaiseEvent))] + [HttpPost("{type}", Name = nameof(RaiseEvent))] [Authorize(Policy = AuthPolicy.Any)] [ProducesResponseType(typeof(string), 400)] [ProducesResponseType(401)] |
