You need to create a WDS interface and assign it the respective WLAN interface. You also add the MAC address of the remote unit to this WDS interface.
e.g. run the command:
int wir wds add name="wds1" mac-address=[local MAC address]
master-interface=wlan1 wds-address=[remote bridge MAC address]
Assign an IP address to the WDS interface instead of the WLAN one.
Regarding routing, if for example you wanted the first unit (192.168.0.1) to ping the LAN interface of the other (192.168.1.1), you would add a route to 192.168.1.0/24 via the gateway 192.168.10.2 on the that first unit.
ip rou add dst-address=192.168.1.0/24 gateway=192.168.10.2
You will need to do the same in reverse on the other unit for the return traffic, ie add a route to 192.168.0.0/24 via 192.168.10.1. You will also need to add routes to other machines on each LAN so they they know to use the respective access point when accessing the other network.
This is really just scratching the surface on the subject of routing but should be enough to at least get things working. I hope this helps!