mirror of
https://github.com/adityachandelgit/BookLore.git
synced 2026-02-18 03:07:40 +01:00
Fix urls
This commit is contained in:
@@ -47,12 +47,12 @@ public class BookController {
|
||||
return booksService.downloadBook(bookId);
|
||||
}
|
||||
|
||||
@GetMapping("/{bookId}/viewer-settings")
|
||||
@GetMapping("/{bookId}/viewer-setting")
|
||||
public ResponseEntity<BookViewerSettings> getBookViewerSettings(@PathVariable long 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) {
|
||||
booksService.updateBookViewerSetting(bookId, bookViewerSettings);
|
||||
return ResponseEntity.noContent().build();
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
|
||||
|
||||
app:
|
||||
path-book: '/Users/aditya.chandel/my-library-temp/books'
|
||||
path-config: '/Users/aditya.chandel/my-library-temp/config/local'
|
||||
@@ -15,7 +17,7 @@ spring:
|
||||
name: booklore-api
|
||||
datasource:
|
||||
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
|
||||
password: password
|
||||
jpa:
|
||||
@@ -37,4 +39,7 @@ logging:
|
||||
level:
|
||||
root: INFO
|
||||
org.apache.fontbox: ERROR
|
||||
org.apache.pdfbox: ERROR
|
||||
org.apache.pdfbox: ERROR
|
||||
|
||||
server:
|
||||
port: 7050
|
||||
8
booklore-ui/package-lock.json
generated
8
booklore-ui/package-lock.json
generated
@@ -22,7 +22,7 @@
|
||||
"@stomp/stompjs": "^7.0.0",
|
||||
"epubjs": "^0.3.93",
|
||||
"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",
|
||||
"primeicons": "^7.0.0",
|
||||
"primeng": "19.0.5",
|
||||
@@ -12403,9 +12403,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/ngx-extended-pdf-viewer": {
|
||||
"version": "22.0.0",
|
||||
"resolved": "https://registry.npmjs.org/ngx-extended-pdf-viewer/-/ngx-extended-pdf-viewer-22.0.0.tgz",
|
||||
"integrity": "sha512-birExqR92IRYVDKSO2TRmlJHuUjlM8GKGAUV9eTr1LiTh1s96OS6YG2hWEFjIUjsFpZDk+7qZ6VlVoSUuJuwsA==",
|
||||
"version": "23.0.0-alpha.1",
|
||||
"resolved": "https://registry.npmjs.org/ngx-extended-pdf-viewer/-/ngx-extended-pdf-viewer-23.0.0-alpha.1.tgz",
|
||||
"integrity": "sha512-SI8yIdsSM80mLxVsQieofjwT+OPfZAMcuJHzkSqbviohz9VDuWa+T87B0Tu63Sa1Lf1F8AzBRXEkh5mBw+bRUw==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"tslib": "^2.3.0"
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
"@stomp/stompjs": "^7.0.0",
|
||||
"epubjs": "^0.3.93",
|
||||
"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",
|
||||
"primeicons": "^7.0.0",
|
||||
"primeng": "19.0.5",
|
||||
|
||||
@@ -96,7 +96,7 @@ export class BookService {
|
||||
}
|
||||
|
||||
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> {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export const environment = {
|
||||
production: false,
|
||||
API_CONFIG: {
|
||||
BASE_URL: 'http://localhost:8080',
|
||||
BROKER_URL: 'ws://localhost:8080/ws',
|
||||
BASE_URL: 'http://localhost:7050',
|
||||
BROKER_URL: 'ws://localhost:7050/ws',
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user