blob: 33089511336eba4270f3d5380be7314b0fec89cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
var cmn=require("../$common.js"),
fs=require("fs"),
express=require("express");
module.exports=function(app,io,moddir){
var router=express.Router();
router.get("/",function(req,res){
res.sendFile(cmn.webfilesdir+"/krokodil.jpg");
});
app.use(function(req,res,next){
if(req.subdomains.length&&req.subdomains[req.subdomains.length-1]=="krokodil"){
router.handle(req,res,next);
} else next();
});
};
|