Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API method to show recently visited groups for user #28

Merged
merged 3 commits into from
Jan 30, 2017

Conversation

sallakarppinen
Copy link
Contributor

@sallakarppinen sallakarppinen commented May 24, 2016

@sallakarppinen
Copy link
Contributor Author

Assigned to @mrvisser as this is part of the same piece of work as Hilary #1289.

Copy link
Member

@brecke brecke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

back to @sallakarppinen

* @param {Group[]} callback.response The user's most recently visited groups
*/
var getRecentlyVisitedGroups = module.exports.getRecentlyVisitedGroups = function(restCtx, userId, callback) {
var url = '/api/user/' + RestUtil.encodeURIComponent(userId) + '/recent';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't /recent a little vague semantically? we might want to add other "recent" resources in the future.

Copy link
Member

@brecke brecke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ready for merge

@sallakarppinen sallakarppinen merged commit 30b6f1e into oaeproject:master Jan 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants