require "kemal"
require "stripe"
require "db"
require "pg"

# Initialize the database connection once
DB_URL = "postgres://postgres@localhost/mom"
DB_CONN = DB.open(DB_URL)

# Routes for auth and projects
require "./routes/auth"
require "./routes/projects"

get "/" do
  render "views/layout.ecr"
end

Kemal.run
