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…')