mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 13:05:49 +00:00
remove context-path
This commit is contained in:
parent
dba731012d
commit
1adafc5b0b
6 changed files with 8 additions and 9 deletions
|
@ -17,6 +17,4 @@ spring.messages.basename=messages/messages
|
|||
management.contextPath=/manage
|
||||
|
||||
# Logging
|
||||
logging.level.org.springframework=INFO
|
||||
|
||||
server.context-path=/petclinic
|
||||
logging.level.org.springframework=INFO
|
|
@ -32,7 +32,8 @@
|
|||
<div ng-repeat="pet in $ctrl.owner.pets">
|
||||
<h3>{{pet.name}}</h3>
|
||||
<p>
|
||||
{{pet.birthDate | date:'yyyy MMM dd'}} - {{pet.type.name}}
|
||||
{{pet.birthDate | date:'yyyy MMM dd'}} - {{pet.type.name}} -
|
||||
<a href="#!/owners/{{$ctrl.owner.id}}/pets/{{pet.id}}/visits">Add Visit</a>
|
||||
</p>
|
||||
<h4>Visits</h4>
|
||||
<p style="margin-left: 2em;" ng-repeat="visit in pet.visits">
|
||||
|
|
|
@ -5,7 +5,7 @@ angular.module('ownerForm', [
|
|||
]);
|
||||
|
||||
angular.module("ownerForm").component("ownerForm", {
|
||||
templateUrl: "/petclinic/scripts/app/owner-form/owner-form.template.html",
|
||||
templateUrl: "scripts/app/owner-form/owner-form.template.html",
|
||||
controller: ["$http", '$routeParams', '$location', function ($http, $routeParams, $location) {
|
||||
var self = this;
|
||||
|
||||
|
|
|
@ -5,10 +5,10 @@ angular.module('ownerList', [
|
|||
]);
|
||||
|
||||
angular.module("ownerList").component("ownerList", {
|
||||
templateUrl: "/petclinic/scripts/app/owner-list/owner-list.template.html",
|
||||
templateUrl: "scripts/app/owner-list/owner-list.template.html",
|
||||
controller: ["$http", function ($http) {
|
||||
var self = this;
|
||||
$http.get('/petclinic/owner/list').then(function(resp) {
|
||||
$http.get('owner/list').then(function(resp) {
|
||||
self.owners = resp.data;
|
||||
});
|
||||
}]
|
||||
|
|
|
@ -5,7 +5,7 @@ angular.module('petForm', [
|
|||
]);
|
||||
|
||||
angular.module("petForm").component("petForm", {
|
||||
templateUrl: "/petclinic/scripts/app/pet-form/pet-form.template.html",
|
||||
templateUrl: "scripts/app/pet-form/pet-form.template.html",
|
||||
controller: ["$http", '$routeParams', '$location', function ($http, $routeParams, $location) {
|
||||
var self = this;
|
||||
var ownerId = $routeParams.ownerId || 0;
|
||||
|
|
|
@ -5,7 +5,7 @@ angular.module('visits', [
|
|||
]);
|
||||
|
||||
angular.module("visits").component("visits", {
|
||||
templateUrl: "/petclinic/scripts/app/visits/visits.template.html",
|
||||
templateUrl: "scripts/app/visits/visits.template.html",
|
||||
controller: ["$http", '$routeParams', '$location', '$filter', function ($http, $routeParams, $location, $filter) {
|
||||
var self = this;
|
||||
var petId = $routeParams.petId || 0;
|
||||
|
|
Loading…
Reference in a new issue