Merge pull request #32 from Dot-Liu/main

修复报错:undefined: pm3.CreateRouterSimple
This commit is contained in:
Dot.L
2024-09-02 19:32:46 +08:00
committed by GitHub
+2 -2
View File
@@ -81,10 +81,10 @@ func IndexHtml(ginCtx *gin.Context) {
func (f *Frontend) Api() []pm3.Api {
return []pm3.Api{
pm3.CreateRouterSimple(http.MethodGet, "/favicon.ico", func(ginCtx *gin.Context) {
pm3.CreateApiSimple(http.MethodGet, "/favicon.ico", func(ginCtx *gin.Context) {
ginCtx.Data(http.StatusOK, iconType, iconContent)
}),
pm3.CreateRouterSimple(http.MethodGet, "/vite.svg", func(ginCtx *gin.Context) {
pm3.CreateApiSimple(http.MethodGet, "/vite.svg", func(ginCtx *gin.Context) {
ginCtx.Data(http.StatusOK, viteContentType, viteContent)
}),
}