Skip to content

Commit

Permalink
Rename manifest serving endpoint to manifest.webapp
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaustav Das Modak committed Aug 30, 2014
1 parent 36a46e0 commit 4b9289e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ $(document).ready( function ($) {
}).done(function (data) {
appId = data.appId;
appurl = "/apps/" + appId;
manifesturl = "/api/apps/" + appId + "/manifest";
manifesturl = "/api/apps/" + appId + "/manifest.webapp";
$("#submission-toast").html($("#submission-toast").html()
.replace(/\{appurl\}/, appurl)
.replace(/\{manifesturl\}/, manifesturl))
Expand Down
2 changes: 1 addition & 1 deletion routes/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ router.post("/apps/createpackaged", function (req, res) {
/**
* Output only the manifest of an app as "application/x-web-app-manifest+json" content-type
*/
router.get("/apps/:id/manifest", function (req, res) {
router.get("/apps/:id/manifest.webapp", function (req, res) {
apps.findOne({appId: req.params.id}, function (err, doc) {

if (err || !doc) {
Expand Down
2 changes: 1 addition & 1 deletion views/apps/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h1>{{ manifest.name }}</h1>
if (apps) {
$("#installButton").removeAttr("disabled")
.click(function (event) {
var manifest = location.origin + "/api/apps/{{ appId }}/manifest",
var manifest = location.origin + "/api/apps/{{ appId }}/manifest.webapp",
check = apps.checkInstalled(manifest);
console.log(manifest);

Expand Down

0 comments on commit 4b9289e

Please sign in to comment.