We know the platform when we come to use the library, so passing it in here is less intrusive than trying to give all Libraries a platform.
I've also updated the useLibraries / api/library view to support platform=xyz being passed, the alternative could be to return all libraries and then doing some filtering on the client side. This could be changed if we find ourselves with libraries supporting multiple platforms... or it could be changed now :)
We know the platform when we come to use the library, so passing it in here is less intrusive than trying to give all Libraries a platform.
I've also updated the useLibraries /
api/library
view to supportplatform=xyz
being passed, the alternative could be to return all libraries and then doing some filtering on the client side. This could be changed if we find ourselves with libraries supporting multiple platforms... or it could be changed now :)