From b6b3cf9ca1d202af5555ddaafb7b87b8ff45c9a6 Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Sat, 29 Apr 2023 15:03:03 +0300 Subject: [PATCH] Fix name in FinderApplication --- main.go | 2 +- websiteapp/finder/finder.go | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 0ee1b1b..5d4a09b 100644 --- a/main.go +++ b/main.go @@ -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{ diff --git a/websiteapp/finder/finder.go b/websiteapp/finder/finder.go index d39c771..8782160 100644 --- a/websiteapp/finder/finder.go +++ b/websiteapp/finder/finder.go @@ -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{} }