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

What Can I do Route #19

Merged
merged 2 commits into from
Apr 4, 2020
Merged

Conversation

akhil-rana
Copy link
Contributor

In response to #18 and camicroscope/caMicroscope#303,

a GET route /data/User/wcido for eg.
http://localhost:4010/data/User/wcido?ut=Admin

is added which takes userType as the URL query parameter and in response, returns a "permissions" object which specifies the user permissions.

@akhil-rana akhil-rana force-pushed the WhatCanIdo_Route branch 2 times, most recently from 81f3cb0 to dfefa8f Compare April 4, 2020 08:44
@@ -139,6 +139,7 @@ app.delete('/data/User/delete', permissionHandler(['Admin']));
app.delete('/data/user/delete', dataHandlers.User.delete);
app.post('/data/User/update', permissionHandler(['Admin']));
app.post('/data/User/update', dataHandlers.User.update);
app.get('/data/User/wcido', dataHandlers.User.wcido);
Copy link
Member

Choose a reason for hiding this comment

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

😆 cute!

@birm birm merged commit db19bb2 into camicroscope:develop Apr 4, 2020
@birm birm mentioned this pull request Apr 4, 2020
@birm birm mentioned this pull request Apr 17, 2020
@akhil-rana akhil-rana deleted the WhatCanIdo_Route branch June 18, 2020 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants