forked from mirrors/Scribe.js
...
This commit is contained in:
parent
ff5ecfc4af
commit
d40f8014a0
2 changed files with 2 additions and 2 deletions
2
dist/routers/viewer.js
vendored
2
dist/routers/viewer.js
vendored
|
@ -84,7 +84,7 @@ function create() {
|
|||
var conn = _mongoose2.default.createConnection(mongoUri);
|
||||
var Entry = conn.model('Entry', _entry2.default);
|
||||
|
||||
router.use(_express2.default.static(__dirname + '/../public'));
|
||||
router.use(_express2.default.static(__dirname + '/../../public'));
|
||||
|
||||
function isAuthenticated(req, res, next) {
|
||||
if (!routerConfig.authentication || req.session.authenticated) {
|
||||
|
|
|
@ -37,7 +37,7 @@ export function create(mongoUri = 'mongodb://localhost/scribe', routerConfig = {
|
|||
const conn = mongoose.createConnection(mongoUri);
|
||||
const Entry = conn.model('Entry', EntrySchema);
|
||||
|
||||
router.use(express.static(`${__dirname}/../public`));
|
||||
router.use(express.static(`${__dirname}/../../public`));
|
||||
|
||||
function isAuthenticated(req, res, next) {
|
||||
if (!routerConfig.authentication || req.session.authenticated) {
|
||||
|
|
Loading…
Add table
Reference in a new issue