Add config page, and configuration for the base URL, so the bookmarklet will work on remote machines.
This commit is contained in:
@@ -13,12 +13,13 @@ func main() {
|
||||
dbh := db.DB{}
|
||||
dbh.Open("badger")
|
||||
bmm := db.NewBookmarkManager(&dbh)
|
||||
cmm := db.NewConfigManager(&dbh)
|
||||
|
||||
go func() { version.UpdateVersionInfo() }()
|
||||
|
||||
log.Printf("linkallet verison %s starting", version.Is())
|
||||
|
||||
server := web.Create(bmm)
|
||||
server := web.Create(bmm, cmm)
|
||||
go bmm.RunQueue()
|
||||
go bmm.UpdateContent()
|
||||
server.Start()
|
||||
|
||||
Reference in New Issue
Block a user