Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,18 @@ end
class Application
include Grip::Application

def initialize
# You can include as many handlers as you want,
# for now we will just log the requests and provide an HTTP handler.
property handlers : Array(HTTP::Handler) = [
Grip::Handlers::Log.new,
Grip::Handlers::HTTP.new
] of HTTP::Handler
# You can include as many handlers as you want,
# for now we will just log the requests and provide an HTTP handler.
property handlers : Array(HTTP::Handler) = [
Grip::Handlers::Log.new,
Grip::Handlers::HTTP.new
] of HTTP::Handler

# By default the environment is set to "DEVELOPMENT".
property environment : String =
ENV["ENVIRONMENT"]? || "PRODUCTION"
# By default the environment is set to "DEVELOPMENT".
property environment : String =
ENV["ENVIRONMENT"]? || "PRODUCTION"

def initialize
scope "/api" do
scope "/v1" do
get "/", IndexController
Expand Down