Fix: unused import and Ping router return wrong version

pull/1198/head
HFO4 2 years ago
parent 24dfb2c24e
commit 15e3e3db5c

@ -49,7 +49,7 @@ func Ping(c *gin.Context) {
c.JSON(200, serializer.Response{
Code: 0,
Data: conf.BackendVersion + conf.IsPro,
Data: version,
})
}

@ -2,8 +2,6 @@ package controllers
import (
"context"
"net/url"
"strconv"
"github.com/cloudreve/Cloudreve/v3/pkg/request"
"github.com/cloudreve/Cloudreve/v3/pkg/serializer"

Loading…
Cancel
Save