1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-05 05:25:27 +02:00

removed old API

This commit is contained in:
Harvey Kandola 2017-08-02 15:26:31 +01:00
parent e284a46f86
commit 562872a4a8
105 changed files with 337 additions and 14496 deletions

View file

@ -68,7 +68,7 @@ func InitRuntime(r *env.Runtime, s *domain.Store) bool {
// go into setup mode if required
if r.Flags.SiteMode != env.SiteModeOffline {
if database.Check(r) {
if err := database.Migrate(*r, true /* the config table exists */); err != nil {
if err := database.Migrate(r, true /* the config table exists */); err != nil {
r.Log.Error("unable to run database migration", err)
return false
}

View file

@ -15,8 +15,6 @@ package main
import (
"fmt"
"github.com/documize/community/core/api"
"github.com/documize/community/core/api/request"
"github.com/documize/community/core/env"
"github.com/documize/community/domain"
"github.com/documize/community/domain/section"
@ -61,12 +59,8 @@ func main() {
// runtime.Log = runtime.Log.SetDB(runtime.Db)
}
// temp code repair
api.Runtime = rt
request.Db = rt.Db
// Register smart sections
section.Register(rt)
section.Register(&rt, &s)
ready := make(chan struct{}, 1) // channel signals router ready
server.Start(&rt, &s, ready)