UNPKG

chainode

Version:

A private blockchain network based on node.js

37 lines (35 loc) 630 B
'use strict'; /* Routes Mapping */ // Routes module.exports = { // Dashboard MAIN: '/', DASHBOARD: '/dashboard', // APIs home APIS: '/api', // Monitoring peer server STATUS: { HEALTH: '/api/health', STATS: '/api/stats' }, // Client authorization AUTH: { SIGNIN: 'api/auth/signin', SIGNUP: 'api/auth/signup', LOGOUT: 'api/auth/logout' }, // Block management BLOCK: { PROPOSE: '/api/block/propose', LIST: '/api/block/list' }, // Peer management PEER: { NEW: 'api/peer/new', AUTH: 'api/peer/auth', VERIFY: 'api/peer/verify', LIST: 'api/peer/list' } };