var app = angular.module("AdmissionsApp");

app.service("PasswordCheckService", ["$http", function ($http) {
    var submitBaseUrl = "http://admissions.vschool.io/api/part";

    this.checkPassword = function (password, partNumber) {
        var submitData = {answer: password};
        return $http.post(submitBaseUrl + "/" + partNumber, submitData)
            .then(function (response) {
                return response.data;
            });
    }
}]);
var app = angular.module("AdmissionsApp");

app.service("PasswordCheckService", ["$http", function ($http) {
    var submitBaseUrl = "http://admissions-qa.vschool.io/api/part";

    this.checkPassword = function (password, partNumber) {
        var submitData = {answer: password};
        return $http.post(submitBaseUrl + "/" + partNumber, submitData)
            .then(function (response) {
                return response.data;
            });
    }
}]);
Change subdomain to reflect that it's in a testing period still