-
Notifications
You must be signed in to change notification settings - Fork 13
Issue169 #183
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
Conversation
<strong><%= exampleUser.username %></strong> | ||
at | ||
<div class="example-wrapper"> | ||
<% if(reviewTarget!==null){ %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe rename this exampleTarget, since it is not related to review anymore
Can you rebase it when you've done all the changes, so I can merge it ? |
290adfc
to
754e12d
Compare
754e12d
to
24c501b
Compare
@@ -126,6 +126,8 @@ module.exports.routes = { | |||
// API | |||
'get /api/topics/:topicId/examples': 'ExampleController.findByTopic', | |||
'post /api/topics/:topicId/examples': 'ExampleController.postExampleToTopic', | |||
'post /api/:exampleId/remove': 'ExampleController.deleteExample', | |||
'post /api/:exampleId/update': 'ExampleController.updateExample', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@louisdelanoeye
So the route looks like this: /api/1/remove
?
It's not clear that we deal with examples.
I would rename theses routes like this:
delete /api/examples/:exampleId': 'ExampleController.deleteExample
post /api/examples/:exampleId': 'ExampleController.updateExample
No need for the /remove
and /update
the http method tells us the action to do
added delete and modify button to examples