Commit a38ba6cf authored by nanamicat's avatar nanamicat

fix

parent ce0e17a2
......@@ -6,7 +6,7 @@ import connections from '../import/connections.json';
export const api = express.Router();
api.get('/', function (req, res, next) {
api.get('/state', function (req, res, next) {
const result = Router.all.map((from) => ({
id: from.id,
peers: from.peers,
......
......@@ -10,7 +10,7 @@ import path from 'path';
// http
const app = express();
app.use(express.static(path.join(__dirname, 'public')));
app.use('/', api);
app.use('/api', api);
app.listen(config.port);
// 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