diff options
Diffstat (limited to 'src/guff.cr')
-rw-r--r-- | src/guff.cr | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/guff.cr b/src/guff.cr index b19db4c..e62ff1f 100644 --- a/src/guff.cr +++ b/src/guff.cr @@ -1,22 +1,7 @@ -require "sqlite3" require "http/server" require "./guff/*" module Guff - class Database < ::SQLite3::Database - # TODO (add table_exists?) - end - - class Model - getter :db - - def initialize(@config : Config) - # create site database - db_path = "%s/site.db" % [config["data"]] - @db = Database.new(db_path) - end - end - class BlogHandler < Handler MATCHES = [%r{ ^/ |