OpenRA / OpenRA-Resources

The OpenRA Resource Center helps the community sharing their custom maps.
http://resource.openra.net
Other
21 stars 18 forks source link

Sped up the maps page lookups and added option to return maps in json format #395

Closed dsimmons87 closed 1 year ago

dsimmons87 commented 1 year ago

Updates the lookup for the maps page to use the database itself for any sorting and filtering instead of pulling all data down.

Adds some very basic testing to this path which can be extended when the code structure is updated.

Add a /api/maps url which allows map data to be returned in json format. At present this just takes the same GET parameters as the filters on the page, but this could be improved if needs be in the future.