Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var express = require('express');
- var fs = require('fs');
- var router = express.Router();
- router.get('/', function(req, res){
- fs.readFile("./HTML/index.html", function(err,data){
- if (err) throw err;
- res.write(data);
- res.end();
- });
- });
- router.get('/AboutUs', function(req, res){
- fs.readFile("./HTML/aboutUs.html", function(err,data){
- if (err) throw err;
- res.write(data);
- res.end();
- });
- });
- router.get('/Text', function(req, res){
- fs.readFile("./HTML/text.html", function(err,data){
- if (err) throw err;
- res.write(data);
- res.end();
- });
- });
- module.exports = router;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement