kwk/docker-registry-frontend

View on GitHub
app/services/app-mode-services.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

// This allows the application to query information about its mode.
// The "app-mode.json" file will be build during "docker build".

angular.module('app-mode-services', ['ngResource'])
  .factory('AppMode', ['$resource', '$log',  function($resource, $log){
    return $resource('/app-mode.json', {}, {
      'query': {
        method:'GET',
        isArray: false,
        cache: false
      },
    });
  }]);