Fix urls
This commit is contained in:
+2
-2
@@ -47,12 +47,12 @@ public class BookController {
|
|||||||
return booksService.downloadBook(bookId);
|
return booksService.downloadBook(bookId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/{bookId}/viewer-settings")
|
@GetMapping("/{bookId}/viewer-setting")
|
||||||
public ResponseEntity<BookViewerSettings> getBookViewerSettings(@PathVariable long bookId) {
|
public ResponseEntity<BookViewerSettings> getBookViewerSettings(@PathVariable long bookId) {
|
||||||
return ResponseEntity.ok(booksService.getBookViewerSetting(bookId));
|
return ResponseEntity.ok(booksService.getBookViewerSetting(bookId));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping("/{bookId}/viewer-settings")
|
@PutMapping("/{bookId}/viewer-setting")
|
||||||
public ResponseEntity<Void> updateBookViewerSettings(@RequestBody BookViewerSettings bookViewerSettings, @PathVariable long bookId) {
|
public ResponseEntity<Void> updateBookViewerSettings(@RequestBody BookViewerSettings bookViewerSettings, @PathVariable long bookId) {
|
||||||
booksService.updateBookViewerSetting(bookId, bookViewerSettings);
|
booksService.updateBookViewerSetting(bookId, bookViewerSettings);
|
||||||
return ResponseEntity.noContent().build();
|
return ResponseEntity.noContent().build();
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
app:
|
app:
|
||||||
path-book: '/Users/aditya.chandel/my-library-temp/books'
|
path-book: '/Users/aditya.chandel/my-library-temp/books'
|
||||||
path-config: '/Users/aditya.chandel/my-library-temp/config/local'
|
path-config: '/Users/aditya.chandel/my-library-temp/config/local'
|
||||||
@@ -15,7 +17,7 @@ spring:
|
|||||||
name: booklore-api
|
name: booklore-api
|
||||||
datasource:
|
datasource:
|
||||||
driver-class-name: org.h2.Driver
|
driver-class-name: org.h2.Driver
|
||||||
url: 'jdbc:h2:tcp://localhost:9092/~/my-library-temp/config/local/db/booklore'
|
url: 'jdbc:h2:tcp://localhost:8040/~/my-library-temp/config/local/db/booklore'
|
||||||
username: sa
|
username: sa
|
||||||
password: password
|
password: password
|
||||||
jpa:
|
jpa:
|
||||||
@@ -38,3 +40,6 @@ logging:
|
|||||||
root: INFO
|
root: INFO
|
||||||
org.apache.fontbox: ERROR
|
org.apache.fontbox: ERROR
|
||||||
org.apache.pdfbox: ERROR
|
org.apache.pdfbox: ERROR
|
||||||
|
|
||||||
|
server:
|
||||||
|
port: 7050
|
||||||
Generated
+4
-4
@@ -22,7 +22,7 @@
|
|||||||
"@stomp/stompjs": "^7.0.0",
|
"@stomp/stompjs": "^7.0.0",
|
||||||
"epubjs": "^0.3.93",
|
"epubjs": "^0.3.93",
|
||||||
"ng-lazyload-image": "^9.1.3",
|
"ng-lazyload-image": "^9.1.3",
|
||||||
"ngx-extended-pdf-viewer": "^22.0.0",
|
"ngx-extended-pdf-viewer": "23.0.0-alpha.1",
|
||||||
"ngx-infinite-scroll": "^19.0.0",
|
"ngx-infinite-scroll": "^19.0.0",
|
||||||
"primeicons": "^7.0.0",
|
"primeicons": "^7.0.0",
|
||||||
"primeng": "19.0.5",
|
"primeng": "19.0.5",
|
||||||
@@ -12403,9 +12403,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/ngx-extended-pdf-viewer": {
|
"node_modules/ngx-extended-pdf-viewer": {
|
||||||
"version": "22.0.0",
|
"version": "23.0.0-alpha.1",
|
||||||
"resolved": "https://registry.npmjs.org/ngx-extended-pdf-viewer/-/ngx-extended-pdf-viewer-22.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/ngx-extended-pdf-viewer/-/ngx-extended-pdf-viewer-23.0.0-alpha.1.tgz",
|
||||||
"integrity": "sha512-birExqR92IRYVDKSO2TRmlJHuUjlM8GKGAUV9eTr1LiTh1s96OS6YG2hWEFjIUjsFpZDk+7qZ6VlVoSUuJuwsA==",
|
"integrity": "sha512-SI8yIdsSM80mLxVsQieofjwT+OPfZAMcuJHzkSqbviohz9VDuWa+T87B0Tu63Sa1Lf1F8AzBRXEkh5mBw+bRUw==",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tslib": "^2.3.0"
|
"tslib": "^2.3.0"
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
"@stomp/stompjs": "^7.0.0",
|
"@stomp/stompjs": "^7.0.0",
|
||||||
"epubjs": "^0.3.93",
|
"epubjs": "^0.3.93",
|
||||||
"ng-lazyload-image": "^9.1.3",
|
"ng-lazyload-image": "^9.1.3",
|
||||||
"ngx-extended-pdf-viewer": "^22.0.0",
|
"ngx-extended-pdf-viewer": "23.0.0-alpha.1",
|
||||||
"ngx-infinite-scroll": "^19.0.0",
|
"ngx-infinite-scroll": "^19.0.0",
|
||||||
"primeicons": "^7.0.0",
|
"primeicons": "^7.0.0",
|
||||||
"primeng": "19.0.5",
|
"primeng": "19.0.5",
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ export class BookService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getBookSetting(bookId: number): Observable<BookSetting> {
|
getBookSetting(bookId: number): Observable<BookSetting> {
|
||||||
return this.http.get<BookSetting>(`${this.url}/${bookId}/viewer-settings`);
|
return this.http.get<BookSetting>(`${this.url}/${bookId}/viewer-setting`);
|
||||||
}
|
}
|
||||||
|
|
||||||
updateViewerSetting(bookSetting: BookSetting, bookId: number): Observable<void> {
|
updateViewerSetting(bookSetting: BookSetting, bookId: number): Observable<void> {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
export const environment = {
|
export const environment = {
|
||||||
production: false,
|
production: false,
|
||||||
API_CONFIG: {
|
API_CONFIG: {
|
||||||
BASE_URL: 'http://localhost:8080',
|
BASE_URL: 'http://localhost:7050',
|
||||||
BROKER_URL: 'ws://localhost:8080/ws',
|
BROKER_URL: 'ws://localhost:7050/ws',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user