added api routes
added routes and controllers