personal-website/apps/BlogWriter/blogwriter.go

38 lines
815 B
Go
Raw Normal View History

2023-05-18 01:57:44 +00:00
package blogwriter
import (
2023-07-23 03:12:17 +00:00
"personalwebsite/apps"
2023-05-18 01:57:44 +00:00
"personalwebsite/webfilesystem"
"github.com/gin-gonic/gin"
)
type BlogWriterApplication struct {
2023-07-23 03:12:17 +00:00
fs *webfilesystem.WebFileSystem
appID string
path string
manifest apps.ApplicationManifest
2023-05-18 01:57:44 +00:00
}
func NewBlogWriterApp(webfs *webfilesystem.WebFileSystem) *BlogWriterApplication {
return &BlogWriterApplication{
fs: webfs,
appID: "BlogWriter",
}
}
2023-07-23 03:12:17 +00:00
func (bw *BlogWriterApplication) GetManifest() apps.ApplicationManifest {
return bw.manifest
}
2023-05-18 01:57:44 +00:00
func (bw *BlogWriterApplication) GetAppID() string {
return bw.appID
}
2023-07-23 03:12:17 +00:00
func (bw *BlogWriterApplication) GetPath() string {
return bw.path
}
2023-05-18 01:57:44 +00:00
func (bw *BlogWriterApplication) PublicRoutes(routes *gin.RouterGroup) {}
func (bw *BlogWriterApplication) PrivateRoutes(routes *gin.RouterGroup) {
}