14 lines
270 B
Go
14 lines
270 B
Go
package controllers
|
|
|
|
import (
|
|
log "github.com/sirupsen/logrus"
|
|
"net/http"
|
|
"pmail/dto"
|
|
"pmail/dto/response"
|
|
)
|
|
|
|
func Ping(ctx *dto.Context, w http.ResponseWriter, req *http.Request) {
|
|
response.NewSuccessResponse("pong").FPrint(w)
|
|
log.WithContext(ctx).Info("pong")
|
|
}
|