add count api endpoint

This commit is contained in:
igoradamenko
2018-03-10 23:47:23 +03:00
parent fdfb5c5770
commit a3320c21cb
+3
View File
@@ -10,6 +10,8 @@ export const getConfig = () => fetcher.get(`/config`);
export const find = ({ url }) => fetcher.get(`/find?url=${url}&sort=-score&format=tree`);
export const count = ({ url, siteId }) => fetcher.get(`/count?url=${url}&site=${siteId}`);
export const getComment = ({ id }) => fetcher.get(`/id/${id}?url=${url}`);
export const vote = ({ id, url, value }) => fetcher.put({
@@ -65,6 +67,7 @@ export default {
logOut,
getConfig,
find,
count,
getComment,
vote,
send,