Fix name in FinderApplication

This commit is contained in:
cyber-dream 2023-04-29 15:03:03 +03:00
parent 21b201fd9d
commit b6b3cf9ca1
2 changed files with 6 additions and 5 deletions

View File

@ -62,7 +62,7 @@ func main() {
webfs := webfilesystem.NewWebFileSystem(client, dBName, webFsCollection)
persPropsApp := personalprops.NewPersPropsApp()
finderApp := finder.FinerApplication{}
finderApp := finder.FinderApplication{}
imgViewerApp := imgviewer.NewImgViewerApp()
blogViewerApp := blogviewer.NewBlogViewerApp(webfs)
appsStorage := websiteapp.ApplicationsStorage{

View File

@ -6,17 +6,18 @@ import (
"github.com/gin-gonic/gin"
)
type FinerApplication struct {
type FinderApplication struct {
manifest websiteapp.ApplicationManifest
}
func (f *FinerApplication) GetManifest() websiteapp.ApplicationManifest {
func NewFinderApplication() *FinderApplication {}
func (f *FinderApplication) GetManifest() websiteapp.ApplicationManifest {
return f.manifest
}
func (f *FinerApplication) GetId() string {
func (f *FinderApplication) GetId() string {
return f.manifest.AppId
}
func (f *FinerApplication) Render(isMobile bool) gin.H {
func (f *FinderApplication) Render(isMobile bool) gin.H {
return gin.H{}
}