package com.example.myapplication.api;

import com.example.myapplication.LoginActivity;
import com.example.myapplication.model.ApiResponse;
import com.example.myapplication.model.ChangePasswordRequest;
import com.example.myapplication.model.LoginEntity;
import com.example.myapplication.model.LoginRequest;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.http.PUT;

public interface AuthApi {
    @POST("/auth/login")
    Call<ApiResponse<LoginEntity>> login(@Body LoginRequest loginRequest);
    @PUT("/auth/modify-password")

    Call<ApiResponse<Void>> modifyPassword(
            @Body ChangePasswordRequest request
    );
}
