anttilip / evento-server

Rails back-end for evento
https://evento-api.herokuapp.com/
1 stars 0 forks source link

Adding attendees should not require id as parameter #32

Closed anttilip closed 7 years ago

anttilip commented 7 years ago

In events controller line 23

user = User.find(params[:user_id])

Obviously this is unnecessary and makes the API uglier.

Other major problem is if user is already attending an event then 304 without any errors is returned.