]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - assets/default/js/base.js
Process token retrieve through Slim controller
[github/shaarli/Shaarli.git] / assets / default / js / base.js
index af3d650c3a66fcedce1345e85b950bedcc47b76c..76e4fe2a1bd142217059a4d8536ef8906a86317c 100644 (file)
@@ -27,7 +27,7 @@ function findParent(element, tagName, attributes) {
  */
 function refreshToken(basePath) {
   const xhr = new XMLHttpRequest();
-  xhr.open('GET', `${basePath}/?do=token`);
+  xhr.open('GET', `${basePath}/admin/token`);
   xhr.onload = () => {
     const token = document.getElementById('token');
     token.setAttribute('value', xhr.responseText);