Skip to content

Commit

Permalink
wrap /api/comments file doc paragraph
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeorpinel committed Dec 5, 2019
1 parent 0a0d69a commit c853e79
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions pages/api/comments.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
/*
* This API endpoint is used by https://blog.dvc.org
* to get comments count for the post, it gets
* discuss.dvc.org topic url as a param and returns
* comments count or error.
* This API endpoint is used by our blog to get comments count for the post, it
* gets discuss.dvc.org topic url as a param and returns comments count or
* error.
*
* It made this way to configure CORS, reduce user's payload
* and to add potential ability to cache comments count
* in the future.
* It made this way to configure CORS, reduce user's payload and to add
* potential ability to cache comments count in the future.
*/

import Cors from 'micro-cors'
Expand Down

0 comments on commit c853e79

Please sign in to comment.