Skip to content

Commit

Permalink
update api routes
Browse files Browse the repository at this point in the history
  • Loading branch information
MightyPork committed Oct 1, 2017
1 parent 8d2d5fd commit 6f165da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _pages.php
Expand Up @@ -41,7 +41,7 @@ function pg($key, $bc, $icon, $path, $titleKey = null)
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', '', '/', '');

Expand Down
2 changes: 1 addition & 1 deletion js/term/connection.js
Expand Up @@ -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…')
Expand Down

0 comments on commit 6f165da

Please sign in to comment.