mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
10 lines
442 B
Dart
10 lines
442 B
Dart
part of '../oott_api.dart';
|
|||
|
|
|
||
|
|
/// Front-end configuration endpoint: the subset of backend settings the UI needs
|
||
|
|
/// to adapt itself (currently the notification delivery method).
|
||
|
|
extension ConfigApi on BackendAPI {
|
||
|
|
/// Fetches the backend's UI-facing configuration. Used by the settings screen
|
||
|
|
/// to show push controls only when the backend delivers via push.
|
||
|
|
Future<AppConfig> getConfig() => _getModel('/config', AppConfig.fromJson);
|
||
|
|
}
|