Added example code to declare routes in JSON