Skip to content

Commit

Permalink
Squash it down to 1.0.0 and remove old/inflated releases
Browse files Browse the repository at this point in the history
  • Loading branch information
grkek committed Mar 29, 2021
1 parent 685dc8d commit 93892e3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@ class IndexController < Grip::Controllers::Http
end

class Application < Grip::Application
def custom : Array(HTTP::Handler)
[] of HTTP::Handler
end

def root : Array(HTTP::Handler)
[] of HTTP::Handler
end

def routes
get "/", IndexController
get "/:id", IndexController, as: :index
Expand Down
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: grip
version: 5.0.0
version: 1.0.0

authors:
- Grip and its Contributors <https://github.com/grip-framework/>
Expand Down
10 changes: 8 additions & 2 deletions src/grip/application.cr
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ module Grip
include Grip::Dsl::Macros

abstract def routes
abstract def custom : Array(HTTP::Handler)
abstract def root : Array(HTTP::Handler)

private property http_handler : Grip::Routers::Http
private property exception_handler : Grip::Handlers::Exception
Expand Down Expand Up @@ -85,6 +83,14 @@ module Grip
@swagger_builder
end

def root : Array(HTTP::Handler)
[] of HTTP::Handler
end

def custom : Array(HTTP::Handler)
[] of HTTP::Handler
end

def host : String
"0.0.0.0"
end
Expand Down

0 comments on commit 93892e3

Please sign in to comment.