Skip to content

Commit

Permalink
[#42] Add /me to the APIService
Browse files Browse the repository at this point in the history
  • Loading branch information
nmint8m committed Feb 15, 2023
1 parent f7b383c commit 2667123
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/api/api_service.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:dio/dio.dart';
import 'package:kayla_flutter_ic/model/response/user_response.dart';
import 'package:kayla_flutter_ic/api/response/me_response.dart';
import 'package:retrofit/retrofit.dart';

part 'api_service.g.dart';
Expand All @@ -8,7 +8,6 @@ part 'api_service.g.dart';
abstract class ApiService {
factory ApiService(Dio dio, {String baseUrl}) = _ApiService;

// TODO add API endpoint
@GET('users')
Future<List<UserResponse>> getUsers();
@GET('/api/v1/me')
Future<MeResponse> me();
}

0 comments on commit 2667123

Please sign in to comment.