simplified routes and controller
demo for api at index