mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-14 18:32:01 +08:00
【调整】暗色主题样式
This commit is contained in:
20
frontend/allinssl/backend/app/api/overview.go
Normal file
20
frontend/allinssl/backend/app/api/overview.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"ALLinSSL/backend/internal/overview"
|
||||
"ALLinSSL/backend/public"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func GetOverview(c *gin.Context) {
|
||||
// Get the overview data from the database
|
||||
overviewData, err := overview.GetOverviewData()
|
||||
if err != nil {
|
||||
public.FailMsg(c, err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Return the overview data as JSON
|
||||
public.SuccessData(c, overviewData, 0)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user