mirror of
https://github.com/Jinnrry/PMail.git
synced 2025-02-20 11:43:09 +08:00
14 lines
284 B
Go
14 lines
284 B
Go
package controllers
|
|
|
|
import (
|
|
log "github.com/sirupsen/logrus"
|
|
"net/http"
|
|
"pmail/dto/response"
|
|
"pmail/utils/context"
|
|
)
|
|
|
|
func Ping(ctx *context.Context, w http.ResponseWriter, req *http.Request) {
|
|
response.NewSuccessResponse("pong").FPrint(w)
|
|
log.WithContext(ctx).Info("pong")
|
|
}
|