forked from eatvio/eatvio_app
16 lines
424 B
Dart
16 lines
424 B
Dart
import 'package:dio/dio.dart';
|
|
import 'package:eatvio_app/features/feed/models/plan_pagination_model.dart';
|
|
import 'package:retrofit/retrofit.dart';
|
|
|
|
part 'plans_service.g.dart';
|
|
|
|
@RestApi()
|
|
abstract class PlansService {
|
|
factory PlansService(Dio dio, {String baseUrl}) = _PlansService;
|
|
|
|
@GET('/api/plans/get_by_author/{author}')
|
|
Future<PlanPaginationModel> getPlansBySlug({
|
|
@Path() required String author,
|
|
});
|
|
}
|