wiota / lime

Lime binds your work together.
lime.wiota.co
2 stars 0 forks source link

Should api endpoints redirect to login? #124

Closed ryanhinkel closed 9 years ago

ryanhinkel commented 9 years ago

I just noticed an api call that was redirected to the login with a next parameter. It was not allowed, of course, but I think it would be better for api calls to return a message.

di commented 9 years ago

This is the default behavior for things that require login. Doesn't make as much sense for an API call though. Probably should return a 401 instead.

ryanhinkel commented 9 years ago

The 401 is suitable.