a5359db271
Release package / release (push) Successful in 13m39s
Co-authored-by: TakahashiNg <83152264+TakahashiNguyen@users.noreply.github.com> Reviewed-on: #30
26 lines
556 B
Java
26 lines
556 B
Java
package com.drinkool.controller;
|
|
|
|
import com.drinkool.Url;
|
|
import com.drinkool.dtos.SmsOtp;
|
|
import com.drinkool.services.BaseService;
|
|
import io.smallrye.mutiny.Uni;
|
|
import jakarta.inject.Inject;
|
|
import jakarta.ws.rs.POST;
|
|
import jakarta.ws.rs.Path;
|
|
import jakarta.ws.rs.core.Response;
|
|
import org.eclipse.microprofile.rest.client.inject.RestClient;
|
|
|
|
@Path("/api")
|
|
public class IndexController {
|
|
|
|
@Inject
|
|
@RestClient
|
|
BaseService baseService;
|
|
|
|
@POST
|
|
@Path(Url.SmsOtp)
|
|
public Uni<Response> smsOtp(SmsOtp input) {
|
|
return baseService.smsOtp(input);
|
|
}
|
|
}
|