Added different routes for historical and snapshot data