mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 17:35:34 +00:00
fix(markdown) root
This commit is contained in:
parent
66211a7ab2
commit
2f82c2407f
1 changed files with 2 additions and 3 deletions
|
|
@ -8,7 +8,7 @@
|
|||
fs = require('fs'),
|
||||
|
||||
Util = require(DIR_LIB + 'util'),
|
||||
|
||||
config = require(DIR + 'config'),
|
||||
mellow = require('mellow'),
|
||||
pipe = require('pipe-io'),
|
||||
ponse = require('ponse'),
|
||||
|
|
@ -18,11 +18,10 @@
|
|||
var query,
|
||||
method = request.method;
|
||||
|
||||
name = mellow.pathToWin(name);
|
||||
|
||||
switch(method) {
|
||||
case 'GET':
|
||||
name = name.replace('/markdown', '');
|
||||
name = mellow.pathToWin(name, config('root'));
|
||||
query = ponse.getQuery(request);
|
||||
|
||||
if (query === 'relative')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue