fix: Updated showconfig, gettypes, getjoinmap handlers; updated BridgeBase to expose joinmaps; updated DeviceFactory to introduce method for getting dictionary

This commit is contained in:
jdevito
2023-01-31 18:27:14 -06:00
parent dd2aca9aa4
commit c68d46f971
11 changed files with 525 additions and 23 deletions

View File

@@ -128,25 +128,25 @@ namespace PepperDash.Essentials.Core.Web
Name = "ShowConfig",
RouteHandler = new ShowConfigRequestHandler()
},
new HttpCwsRoute("gettypes/all")
new HttpCwsRoute("gettypes")
{
Name = "GetTypesAll",
Name = "GetTypes",
RouteHandler = new GetTypesRequestHandler()
},
new HttpCwsRoute("gettypes/{filter}")
{
Name = "GetTypesByFilter",
RouteHandler = new GetTypesRequestHandler()
RouteHandler = new GetTypesByFilterRequestHandler()
},
new HttpCwsRoute("getjoinmap/{bridgeKey}/all")
new HttpCwsRoute("getjoinmap/{bridgeKey}")
{
Name = "GetJoinMapsByBridgeKey",
RouteHandler = new GetJoinMapRequestHandler()
Name = "GetJoinMapsForBridgeKey",
RouteHandler = new GetJoinMapForBridgeKeyRequestHandler()
},
new HttpCwsRoute("getjoinmap/{bridgeKey}/{deviceKey}")
{
Name = "GetJoinMapsForBridgeKeyFilteredByDeviceKey",
RouteHandler = new GetJoinMapRequestHandler()
Name = "GetJoinMapsForDeviceKey",
RouteHandler = new GetJoinMapForDeviceKeyRequestHandler()
}
};