mirror of
https://github.com/kwk/docker-registry-frontend.git
synced 2024-11-10 17:03:49 +08:00
Don't strip trailing slashes from the resource URL by escaping the slash.
This change required an update to AngularJS ~1.3.0 which currently resolves 1.3.0-rc.2. This is the thing we needed: https://github.com/angular/angular.js/pull/5560 The feature is documented in the AngularJS API reference: https://docs.angularjs.org/api/ngResource/service/$resource
This commit is contained in:
parent
600457ac85
commit
d2b34b79c6
2 changed files with 14 additions and 10 deletions
|
@ -30,7 +30,11 @@ angular
|
|||
'delete-tag-controller',
|
||||
'delete-repository-controller',
|
||||
])
|
||||
.config(['$routeProvider', function($routeProvider){
|
||||
.config(['$routeProvider', '$resourceProvider', function($routeProvider, $resourceProvider){
|
||||
|
||||
// Don't strip trailing slashes from calculated URLs
|
||||
$resourceProvider.defaults.stripTrailingSlashes = false;
|
||||
|
||||
$routeProvider.
|
||||
when('/home', {
|
||||
templateUrl: 'views/home.html',
|
||||
|
|
18
bower.json
18
bower.json
|
@ -2,21 +2,21 @@
|
|||
"name": "docker-registry-frontend",
|
||||
"version": "0.0.0",
|
||||
"dependencies": {
|
||||
"angular": "~1.2.0",
|
||||
"angular": "~1.3.0",
|
||||
"json3": "~3.3.1",
|
||||
"es5-shim": "~3.1.0",
|
||||
"bootstrap": "~3.2.0",
|
||||
"angular-resource": "~1.2.24",
|
||||
"angular-cookies": "~1.2.0",
|
||||
"angular-sanitize": "~1.2.0",
|
||||
"angular-animate": "~1.2.0",
|
||||
"angular-touch": "~1.2.0",
|
||||
"angular-route": "~1.2.0",
|
||||
"angular-resource": "~1.3.0",
|
||||
"angular-cookies": "~1.3.0",
|
||||
"angular-sanitize": "~1.3.0",
|
||||
"angular-animate": "~1.3.0",
|
||||
"angular-touch": "~1.3.0",
|
||||
"angular-route": "~1.3.0",
|
||||
"toastr": "~2.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"angular-mocks": "~1.2.0",
|
||||
"angular-scenario": "~1.2.0"
|
||||
"angular-mocks": "~1.3.0",
|
||||
"angular-scenario": "~1.3.0"
|
||||
},
|
||||
"appPath": "app"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue