mirror of
https://github.com/krawieck/lemmur/
synced 2024-12-18 11:28:45 +01:00
19c10d27f9
Move `v1` endpoint to it's own directory, and `PostEndpoint`and `UserEndpoint` to their own files
16 lines
369 B
Dart
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);
|
|
}
|