add api directory in controllers. authenticate_user in api/user_controller doesnt work
add rails cors gem. Login from other side but credential fails
simple token authentication to get data from other domains
merge pg
return custom json at users/index
delete unused controller