From 6f165da9b6237fd88efc836a663a429ed8aadb6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sun, 1 Oct 2017 23:05:39 +0200 Subject: [PATCH] update api routes --- _pages.php | 2 +- js/term/connection.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_pages.php b/_pages.php index c2d9ad7..b45d23f 100644 --- a/_pages.php +++ b/_pages.php @@ -41,7 +41,7 @@ pg('help', 'cfg page-help', 'help', '/help'); pg('about', 'cfg page-about', 'about', '/about'); pg('term', 'term', '', '/', 'title.term'); -pg('reset_screen', 'api', '', '/system/cls', 'title.term'); +pg('reset_screen', 'api', '', '/api/v1/clear', 'title.term'); pg('index', 'api', '', '/', ''); diff --git a/js/term/connection.js b/js/term/connection.js index 7e10520..d53966c 100644 --- a/js/term/connection.js +++ b/js/term/connection.js @@ -202,7 +202,7 @@ module.exports = class TermConnection extends EventEmitter { sendPing () { console.log('> ping') this.emit('ping') - $.get('http://' + window._root + '/system/ping', (resp, status) => { + $.get('http://' + window._root + '/api/v1/ping', (resp, status) => { if (status === 200) { clearInterval(this.pingInterval) console.info('Server ready, opening socket…')