We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b22b160 commit b58a031Copy full SHA for b58a031
1 file changed
frontend/frontend.go
@@ -81,10 +81,10 @@ func IndexHtml(ginCtx *gin.Context) {
81
82
func (f *Frontend) Api() []pm3.Api {
83
return []pm3.Api{
84
- pm3.CreateRouterSimple(http.MethodGet, "/favicon.ico", func(ginCtx *gin.Context) {
+ pm3.CreateApiSimple(http.MethodGet, "/favicon.ico", func(ginCtx *gin.Context) {
85
ginCtx.Data(http.StatusOK, iconType, iconContent)
86
}),
87
- pm3.CreateRouterSimple(http.MethodGet, "/vite.svg", func(ginCtx *gin.Context) {
+ pm3.CreateApiSimple(http.MethodGet, "/vite.svg", func(ginCtx *gin.Context) {
88
ginCtx.Data(http.StatusOK, viteContentType, viteContent)
89
90
}
0 commit comments