restify/node-restify

serveStatic is non-intuitive

オープン

#535 opened on 2014/02/18

 (33 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (983 件のフォーク)batch import
BugHelp WantedServe

Repository metrics

Stars
 (10,695 個のスター)
PR merge metrics
 (PR metrics pending)

説明

KISS: Keep it simple stupid. Please make it this for static files plugins, all people have the same problem, in my ofice 5 persons give me the same as bug!!

if you assign this:

server.get(/\/docs\/public\/?.*/, restify.serveStatic({
  directory: './public'
}));

will mean that if you get the url "domain.com/docs/public" this will be load the content of "public" folder. END. Not at prefix for the entire route path... and your fairy tales... Kiss men, kiss...

コントリビューターガイド