From 7939a5e932076b273b81aec5a66169fdc77778f1 Mon Sep 17 00:00:00 2001 From: Atul Varma Date: Tue, 9 Jun 2015 12:28:31 -0400 Subject: [PATCH] support webmaker-desktop makes hosted at beta.webmaker.org. --- README.md | 1 + makes.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8f72e89..34a4b52 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,7 @@ All POST endpoints take JSON-encoded bodies. and querystring arguments, so long as it is hosted at one of the following webmaker desktop domains: * webmaker-desktop-staging.herokuapp.com + * beta.webmaker.org ### Methods diff --git a/makes.js b/makes.js index 3bf83f4..b945407 100644 --- a/makes.js +++ b/makes.js @@ -4,7 +4,7 @@ var urlParse = require('url').parse; var MOFODEV_URL_RE = /^https?:\/\/[A-Za-z0-9_\-]+\.mofodev\.net\//; var HTTPS_MAKES_URL_RE = /^https:\/\/[A-Za-z0-9_\-]+\.makes\.org\//; var GOGGLES_URL_RE = /^http:\/\/[A-Za-z0-9_\-]+\.makes\.org\/goggles\//; -var WEBMAKER_DESKTOP_RE = /^https:\/\/webmaker-desktop-staging\.herokuapp\.com/; +var WEBMAKER_DESKTOP_RE = /^https:\/\/(webmaker-desktop-staging\.herokuapp\.com|beta\.webmaker\.org)\//; var ENDS_WITH_UNDERSCORE_RE = /_$/; function hostnameAndPath(url) {