38 lines
815 B
Go
38 lines
815 B
Go
package blogwriter
|
|
|
|
import (
|
|
"personalwebsite/apps"
|
|
"personalwebsite/webfilesystem"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type BlogWriterApplication struct {
|
|
fs *webfilesystem.WebFileSystem
|
|
appID string
|
|
path string
|
|
manifest apps.ApplicationManifest
|
|
}
|
|
|
|
func NewBlogWriterApp(webfs *webfilesystem.WebFileSystem) *BlogWriterApplication {
|
|
return &BlogWriterApplication{
|
|
fs: webfs,
|
|
appID: "BlogWriter",
|
|
}
|
|
}
|
|
func (bw *BlogWriterApplication) GetManifest() apps.ApplicationManifest {
|
|
return bw.manifest
|
|
}
|
|
func (bw *BlogWriterApplication) GetAppID() string {
|
|
return bw.appID
|
|
}
|
|
|
|
func (bw *BlogWriterApplication) GetPath() string {
|
|
return bw.path
|
|
}
|
|
|
|
func (bw *BlogWriterApplication) PublicRoutes(routes *gin.RouterGroup) {}
|
|
func (bw *BlogWriterApplication) PrivateRoutes(routes *gin.RouterGroup) {
|
|
|
|
}
|