How to add diodes for Bidirectional motor with L298N module

You could use a full wave bridge instead of 4 separate diodes;
l298_fwb.png

l298_fwb.png