1
0
mirror of https://github.com/krawieck/lemmur/ synced 2024-12-18 11:28:45 +01:00
lemmur-app-android/lib/client/client.dart
krawieck 19c10d27f9 Move endponts to separate files to reduce clutter
Move `v1` endpoint to it's own directory, and `PostEndpoint`and `UserEndpoint` to their own files
2020-08-05 23:21:26 +02:00

16 lines
369 B
Dart

import 'package:flutter/material.dart';
import 'package:lemmur/client/v1/main.dart';
import 'package:lemmur/client/v1/user_endpoint.dart';
class LemmyAPI {
/// url of this lemmy instance
String instanceUrl;
V1 v1;
/// initialize lemmy api instance
LemmyAPI({@required this.instanceUrl})
: assert(instanceUrl != null),
v1 = V1(instanceUrl);
}