abort "! .env environment missing" unless ENV['LOG_LEVEL']

require 'sinatra/base'
require 'sinatra/json'

$stdout.sync = true if ENV['LOG_SYNC'].to_i == 1

module Tpnoted
  class Web < Sinatra::Base
    
    API_VERSION = 1
    
    set :logging, true
    
    helpers Sinatra::JSON
    
    before do
      logger.level = Logger.const_get(ENV['LOG_LEVEL'])
      logger.formatter = Logger::Formatter.new
    end
    
    get '/' do
      "Harro! :)"
      json({
        :service => 'tpnoted',
        :version => API_VERSION,
        :time    => Time.now.to_i,
        :msg     => "Hello. Welcome to the tpnoted service."
      })
    end
    
  end
end

abort "! .env environment missing" unless ENV['LOG_LEVEL']

require 'sinatra/base'
require 'sinatra/json'

$stdout.sync = true if ENV['LOG_SYNC'].to_i == 1

module Tpnoted
  class Web < Sinatra::Base
    
    API_VERSION = 1
    
    set :logging, true
    
    helpers Sinatra::JSON
    
    before do
      logger.level = Logger.const_get(ENV['LOG_LEVEL'])
      logger.formatter = Logger::Formatter.new
    end
    
    get '/' do
      json({
        :service => 'tpnoted',
        :version => API_VERSION,
        :time    => Time.now.to_i,
        :msg     => "Hello. Welcome to the tpnoted service."
      })
    end
    
  end
end

Fix typo GET / .
Fix typo GET / .
