ShokoAnime / ShokoServer

Repository for Shoko Server.
http://shokoanime.com/shoko-server/
MIT License
376 stars 74 forks source link

Fix: PathEndsWithQuery parsing path as intended #1039

Closed fearnlj01 closed 1 year ago

fearnlj01 commented 1 year ago

/api/v3/File/PathEndsWith was receiving the path as a null paramater when passed as a query rather than path. (Working fine when passed as a path)

I don't fully understand my own change, but I couldn't find any other instances of [FromRoute, FromQuery] being used so I tweaked & tested.

This seems to fix the aforementioned issue, at least on my equipment.

da3dsoul commented 1 year ago

To be fair, I don't think we have any other instances that support both, so that would be why you didn't see it elsewhere.

revam commented 1 year ago

My bad