PWA
This commit is contained in:
@@ -71,6 +71,13 @@ The repo also includes a multiplatform SwiftUI client in `apple-client/` for mac
|
||||
- Generate the Xcode project with `xcodegen generate --spec apple-client/project.yml --project-root apple-client`.
|
||||
- A build of the Apple app automatically rebuilds the Angular client into `apple-client/WebApp/` before bundling it.
|
||||
|
||||
The backend also exposes the latest Angular browser build through an API that native clients can sync into their local `WKWebView` bundle cache:
|
||||
|
||||
- `GET /api/web-app/manifest`: Returns a bundle manifest with a stable `bundleId`, latest `generatedAt` timestamp, and a file list containing relative paths, SHA-256 hashes, MIME types, sizes, and download URLs.
|
||||
- `GET /api/web-app/files/<relative-path>`: Streams an individual file from `client/dist/client/browser` with `ETag` and `Last-Modified` headers for native caching.
|
||||
|
||||
If the Angular build does not exist yet, those endpoints return `404`.
|
||||
|
||||
## Backend environment
|
||||
|
||||
The backend accepts these environment variables:
|
||||
|
||||
Reference in New Issue
Block a user