mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(markdown) add DIR_ROOT
This commit is contained in:
parent
5d2e7f394e
commit
377726fa0a
1 changed files with 2 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
var DIR = '../',
|
||||
DIR_LIB = DIR + '../',
|
||||
DIR_ROOT = __dirname + '/' + DIR_LIB + '../',
|
||||
|
||||
fs = require('fs'),
|
||||
|
||||
|
|
@ -28,7 +29,7 @@
|
|||
query = ponse.getQuery(request);
|
||||
|
||||
if (query === 'relative')
|
||||
name = DIR + name;
|
||||
name = DIR_ROOT + name;
|
||||
|
||||
fs.readFile(name, 'utf8', function(error, data) {
|
||||
if (error)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue