Created
October 22, 2013 13:36
-
-
Save andrewconnell/7100911 to your computer and use it in GitHub Desktop.
SharePoint REST script library for obtaining common paths in client-side SharePoint 2013 development.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var module = { | |
getAppAbsoluteUrl: getAppAbsoluteUrl, | |
getAppRelativeUrl: getAppRelativeUrl, | |
getAppODataApiUrl: getAppODataApiUrl | |
}; | |
return module; | |
function getAppAbsoluteUrl() { | |
return _spPageContextInfo.webAbsoluteUrl; | |
}; | |
function getAppRelativeUrl() { | |
return _spPageContextInfo.webServerRelativeUrl; | |
}; | |
function getAppODataApiUrl() { | |
return getAppAbsoluteUrl() + "/_api"; | |
}; | |
}); | |
NotifyScriptLoadedAndExecuteWaitingJobs("spAppUtils.js"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment