'use strict';
var express = require('express');
var app = express('');var fs = require('fs');app.get('/data',(req,res) =>{
fs.readFile('data.json','utf-8',(err,data) =>{ if(err) throw err; res.send(data); })})app.get('/userInfo',(req,res) =>{
fs.readFile('data1.json','utf-8',(err,data) =>{ if(err) throw err; res.send(data); })})app.listen('8888', () =>{
console.log('ok')})