Skip to content

Commit 1f8e2bf

Browse files
authored
Merge pull request #32 from Dot-Liu/main
修复报错:undefined: pm3.CreateRouterSimple
2 parents d96f11d + b58a031 commit 1f8e2bf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/frontend.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ func IndexHtml(ginCtx *gin.Context) {
8181

8282
func (f *Frontend) Api() []pm3.Api {
8383
return []pm3.Api{
84-
pm3.CreateRouterSimple(http.MethodGet, "/favicon.ico", func(ginCtx *gin.Context) {
84+
pm3.CreateApiSimple(http.MethodGet, "/favicon.ico", func(ginCtx *gin.Context) {
8585
ginCtx.Data(http.StatusOK, iconType, iconContent)
8686
}),
87-
pm3.CreateRouterSimple(http.MethodGet, "/vite.svg", func(ginCtx *gin.Context) {
87+
pm3.CreateApiSimple(http.MethodGet, "/vite.svg", func(ginCtx *gin.Context) {
8888
ginCtx.Data(http.StatusOK, viteContentType, viteContent)
8989
}),
9090
}

0 commit comments

Comments
 (0)