1
mirror of https://gitlab.com/commento/commento.git synced 2025-06-29 22:56:37 -04:00

api: add disqus endpoint

This commit is contained in:
Adhityaa
2018-06-14 14:28:11 +05:30
parent 93b842c5d4
commit 57e5bc7abc
5 changed files with 215 additions and 3 deletions

View File

@ -18,7 +18,7 @@
}
global.buttonDisable("#disqus-import-button");
global.post(global.commento_origin + "/api/import/disqus", json, function(resp) {
global.post(global.commento_origin + "/api/domain/import/disqus", json, function(resp) {
global.buttonEnable("#disqus-import-button");
if (!resp.success) {
@ -26,6 +26,8 @@
return;
}
$("#disqus-import-button").hide();
globalOKShow("Imported " + resp.numImported + " comments!");
});
}