mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-12 01:30:09 +08:00
Add files via upload
This commit is contained in:
20
backend/app/api/overview.go
Normal file
20
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