mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
Merge pull request #32 from Dot-Liu/main
修复报错:undefined: pm3.CreateRouterSimple
This commit is contained in:
@@ -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)
|
||||
}),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user