Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix #1625, add /contribute.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ianb committed Oct 6, 2016
1 parent ca4b06e commit 8e422a5
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions server/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,41 @@ app.get("/__heartbeat__", function (req, res) {
});
});

app.get("/contribute.json", function (req, res) {
let data = {
name: "Page Shot",
description: "Page Shot is an add-on for Firefox and a service for screenshots and other ways to capture and share content",
repository: {
url: "https://github.com/mozilla-services/pageshot/",
license: "MPL2",
tests: "https://travis-ci.org/mozilla-services/pageshot"
},
participate: {
home: "https://github.com/mozilla-services/pageshot/",
irc: "irc://irc.mozilla.org/#pageshot",
"irc-contacts": ["ianbicking", "fzzzy"]
},
bugs: {
list: "https://github.com/mozilla-services/pageshot/issues",
report: "https://github.com/mozilla-services/pageshot/issues/new",
goodfirstbugs: "https://github.com/mozilla-services/pageshot/labels/good%20first%20bug"
},
urls: {
prod: "https://pageshot.net",
stage: "https://pageshot.stage.mozaws.net/"
},
keywords: [
"javascript",
"node",
"express",
"react",
"postgresql",
"firefox"
]
};
res.header("Content-Type", "application/json; charset=utf-8");
res.send(JSON.stringify(data, null, ' '));
});

// FIXME: this can't the right way to do this...
require("./exporter").setup(app);
Expand Down

0 comments on commit 8e422a5

Please # to comment.