From c313134d97b441d9abaaf363bb83a4ceff66746d Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 12 Jan 2026 08:57:27 -0600 Subject: docs --- src/slskd/Common/Middleware/UrlEncodingModelBinder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slskd/Common/Middleware/UrlEncodingModelBinder.cs b/src/slskd/Common/Middleware/UrlEncodingModelBinder.cs index 9ec52302..9592e75e 100644 --- a/src/slskd/Common/Middleware/UrlEncodingModelBinder.cs +++ b/src/slskd/Common/Middleware/UrlEncodingModelBinder.cs @@ -31,7 +31,7 @@ using Microsoft.AspNetCore.Mvc.ModelBinding.Metadata; /// For this to work as intended, method parameters must: /// /// -/// Use either Path binding (e.g [FromRoute]) +/// Use Path binding (e.g [FromRoute]) /// Have a backing type of string /// Be decorated with the [UrlEncoded] attribute /// @@ -46,7 +46,7 @@ public class UrlEncodingModelBinder : IModelBinder /* given the information in the provided ModelBindingContext, - 1. determine which 'model' (named route parameter) we're trying to bind a value for (e.g. 'foo') + 1. determine which 'model' (named route parameter) we're trying to bind a value for (e.g. 'bar') 2. from the full route template (e.g. api/v{version:apiVersion}/foo/{bar}), determine the index of the model we are looking for in the template, segmented by forward slashes (e.g. 3rd in example above) 3. from the raw, unmanipulated request URL, extract the Nth forward-slash-separated value; this will be our -- cgit v1.2.3