From eae499c640cf6559c01706f0a5bcedd30f0c8410 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Sat, 15 Dec 2018 17:17:36 -0800 Subject: [PATCH] Dummy out Events and Contacts for now, shelved for later --- blog.go | 6 ------ root/{events => .wip-events}/edit.gohtml | 0 root/{events => .wip-events}/index.gohtml | 0 root/{events => .wip-events}/invite.gohtml | 0 root/{events => .wip-events}/view.gohtml | 0 5 files changed, 6 deletions(-) rename root/{events => .wip-events}/edit.gohtml (100%) rename root/{events => .wip-events}/index.gohtml (100%) rename root/{events => .wip-events}/invite.gohtml (100%) rename root/{events => .wip-events}/view.gohtml (100%) diff --git a/blog.go b/blog.go index dce27c7..1334dcb 100644 --- a/blog.go +++ b/blog.go @@ -13,7 +13,6 @@ import ( "github.com/kirsle/blog/internal/controllers/authctl" commentctl "github.com/kirsle/blog/internal/controllers/comments" "github.com/kirsle/blog/internal/controllers/contact" - eventctl "github.com/kirsle/blog/internal/controllers/events" postctl "github.com/kirsle/blog/internal/controllers/posts" "github.com/kirsle/blog/internal/controllers/setup" "github.com/kirsle/blog/internal/log" @@ -28,8 +27,6 @@ import ( "github.com/kirsle/blog/jsondb/caches/null" "github.com/kirsle/blog/jsondb/caches/redis" "github.com/kirsle/blog/models/comments" - "github.com/kirsle/blog/models/contacts" - "github.com/kirsle/blog/models/events" "github.com/kirsle/blog/models/posts" "github.com/kirsle/blog/models/settings" "github.com/kirsle/blog/models/users" @@ -104,8 +101,6 @@ func (b *Blog) Configure() { users.HashCost = config.Security.HashCost // Initialize the rest of the models. - contacts.UseDB(b.db) - events.UseDB(b.db) posts.DB = b.jsonDB users.DB = b.jsonDB comments.DB = b.jsonDB @@ -141,7 +136,6 @@ func (b *Blog) SetupHTTP() { contact.Register(r) postctl.Register(r, b.MustLogin) commentctl.Register(r) - eventctl.Register(r, b.MustLogin) // GitHub Flavored Markdown CSS. r.Handle("/css/gfm.css", http.StripPrefix("/css", http.FileServer(gfmstyle.Assets))) diff --git a/root/events/edit.gohtml b/root/.wip-events/edit.gohtml similarity index 100% rename from root/events/edit.gohtml rename to root/.wip-events/edit.gohtml diff --git a/root/events/index.gohtml b/root/.wip-events/index.gohtml similarity index 100% rename from root/events/index.gohtml rename to root/.wip-events/index.gohtml diff --git a/root/events/invite.gohtml b/root/.wip-events/invite.gohtml similarity index 100% rename from root/events/invite.gohtml rename to root/.wip-events/invite.gohtml diff --git a/root/events/view.gohtml b/root/.wip-events/view.gohtml similarity index 100% rename from root/events/view.gohtml rename to root/.wip-events/view.gohtml