Sha256: 3e8779bf6c8c4fd45b9fa3f777cdf2a4f2733fd44e43507a99e899d49f24c3e5

Contents?: true

Size: 545 Bytes

Versions: 2

Compression:

Stored size: 545 Bytes

Contents

angular.module("hyperadmin", [ "restangular", "ui.router" ])
  .config ($httpProvider) ->
    authToken = $("meta[name=\"csrf-token\"]").attr("content")
    $httpProvider.defaults.headers.common["X-CSRF-TOKEN"] = authToken
    $httpProvider.defaults.headers.common["X-Requested-With"] = "XMLHttpRequest"
    $httpProvider.defaults.headers.common["Accept"] = "text/html,application/json"

  .config ($stateProvider) ->
    window.stateProvider = $stateProvider

  .config (RestangularProvider) ->
    RestangularProvider.setRequestSuffix '.json'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hyper_admin-0.4.0 app/assets/javascripts/hyper_admin/angularjs/config.js.coffee
hyper_admin-0.3.0 app/assets/javascripts/hyper_admin/angularjs/config.js.coffee