Sha256: b249766fcb88b5b83e73747ac5f6a16c5e4f352c2dedd83f7d0a18ad5bcbc954

Contents?: true

Size: 434 Bytes

Versions: 9

Compression:

Stored size: 434 Bytes

Contents

(function(object) {
  'use strict';

  object.authPath = function() {
    return object.pathBuilder([object.mountScope(), object.authScope()]);
  };

  object.authPathFor = function(path, args) {
    return object.pathFor([object.authScope(), path], args);
  };

  object.route.auth = {
    // Root
    rootPath: object.authPath(),

    // Login
    loginPath: object.authPathFor('login')
  };

  return object;

}(Archangel || {}));

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
archangel-0.4.0 app/assets/javascripts/archangel/object/routes/auth.js
archangel-0.3.0 app/assets/javascripts/archangel/object/routes/auth.js
archangel-0.0.8 app/assets/javascripts/archangel/object/routes/auth.js
archangel-0.0.7 app/assets/javascripts/archangel/object/routes/auth.js
archangel-0.0.6 app/assets/javascripts/archangel/object/routes/auth.js
archangel-0.0.5 app/assets/javascripts/archangel/object/routes/auth.js
archangel-0.0.4 app/assets/javascripts/archangel/object/routes/auth.js
archangel-0.0.3 app/assets/javascripts/archangel/object/routes/auth.js
archangel-0.0.2 app/assets/javascripts/archangel/object/routes/auth.js