Skip to content

Commit

Permalink
Customize title for app detail page and fix deprecated api cal
Browse files Browse the repository at this point in the history
Signed-off-by: Kaustav Das Modak <kaustav.dasmodak@yahoo.co.in>
  • Loading branch information
Kaustav Das Modak committed Oct 8, 2014
1 parent eff472c commit 9eecede
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routes/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ var router = express.Router(),
apps = db.get("apps");

router.get("/", function (req, res) {
res.json(200, {"message": "Here be apps"});
res.status(200).json({"message": "Here be apps"});
});

router.get("/:id", function (req, res) {
apps.findOne({ appId: req.params.id}).on("success", function (doc) {
doc.config = agora.config;
doc.title = doc.manifest.name + " - " + doc.appId + " | Applait Explore";
res.render("apps/detail.html", doc);
});
});
Expand Down

0 comments on commit 9eecede

Please sign in to comment.