Switched from grappe to rails-api and added two endpoints