node.js - Express js route handling -
in application i've set static folder in there 'index.html' file.
i want render file on route /profile
is possible?
yes can this. take @ following code.
var app=require('express')(); app.use("/profile", lib.express.static("./public"));
here ./public
original location of folder containing index.html
file.
Comments
Post a Comment