Video player modal + provider match

This commit is contained in:
NGPixel
2017-01-02 22:20:24 -05:00
parent dab4a97094
commit 4625a302f6
15 changed files with 168 additions and 43 deletions

View File

@@ -43,9 +43,9 @@ router.put('/edit/*', (req, res, next) => {
let safePath = entries.parsePath(_.replace(req.path, '/edit', ''));
entries.update(safePath, req.body.markdown).then(() => {
res.json({
return res.json({
ok: true
});
}) || true;
}).catch((err) => {
res.json({
ok: false,
@@ -105,9 +105,9 @@ router.put('/create/*', (req, res, next) => {
let safePath = entries.parsePath(_.replace(req.path, '/create', ''));
entries.create(safePath, req.body.markdown).then(() => {
res.json({
return res.json({
ok: true
});
}) || true;
}).catch((err) => {
res.json({
ok: false,