Commit 66638b1a authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent f6b4f364
Pipeline #16060 passed with stages
in 3 minutes and 10 seconds
...@@ -6,7 +6,7 @@ import connections from '../import/connections.json'; ...@@ -6,7 +6,7 @@ import connections from '../import/connections.json';
export const api = express.Router(); export const api = express.Router();
api.get('/', function (req, res, next) { api.get('/state', function (req, res, next) {
const result = Router.all.map((from) => ({ const result = Router.all.map((from) => ({
id: from.id, id: from.id,
peers: from.peers, peers: from.peers,
......
...@@ -10,7 +10,7 @@ import path from 'path'; ...@@ -10,7 +10,7 @@ import path from 'path';
// http // http
const app = express(); const app = express();
app.use(express.static(path.join(__dirname, 'public'))); app.use(express.static(path.join(__dirname, 'public')));
app.use('/', api); app.use('/api', api);
app.listen(config.port); app.listen(config.port);
// udp routing protocol // udp routing protocol
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment