forked from eatvio/eatvio_app
16 lines
406 B
Dart
16 lines
406 B
Dart
import 'package:dio/dio.dart';
|
|
import 'package:eatvio_app/features/profile/models/profile_model.dart';
|
|
import 'package:retrofit/retrofit.dart';
|
|
|
|
part 'profile_service.g.dart';
|
|
|
|
@RestApi()
|
|
abstract class ProfileService {
|
|
factory ProfileService(Dio dio, {String baseUrl}) = _ProfileService;
|
|
|
|
@GET('/api/profile/show/{slug}')
|
|
Future<Profile> getProfileBySlug({
|
|
@Path() required String slug,
|
|
});
|
|
}
|