If you want to use a routes.json file for custom json-server routing from the command line, you can do so with the --routes option like this:
json-server --wa