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

Popular posts from this blog

c - CUDA code not processing if block properly -

Android Capture Image From Camera -

oracle11g - get root domain from url Oracle sql regex_substr -