rewrite draft using preact

This commit is contained in:
igoradamenko
2018-01-23 20:15:35 +02:00
parent 26e2445913
commit 1f4e1b160f
31 changed files with 374 additions and 266 deletions
+10
View File
@@ -0,0 +1,10 @@
import fetcher from './fetcher'
export const find = ({ url }) => fetcher.get(`/find?url=${url}&sort=time&format=tree`);
export const vote = ({ id, url, value }) => fetcher.get(`/vote/${id}?url=${url}&vote=${value}`);
export default {
find,
vote,
};