ApiDogFood.WebClient.Controllers.AssetsController.ApiAuth C# (CSharp) Method

ApiAuth() public method

public ApiAuth ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult
        public ActionResult ApiAuth()
        {
            var token = Session[Constants.SessionTokenKey] as string;
            var script = @"var my = my || {}; my.authToken = '" + token + "'; my.baseUri = '" + Constants.ApiBaseUri + "';";
            return JavaScript(script);
        }
AssetsController