From 93892e3d0de5cfe34e13c567531f1ee7d3827c4d Mon Sep 17 00:00:00 2001 From: Giorgi Kavrelishvili Date: Mon, 29 Mar 2021 08:10:44 +0400 Subject: [PATCH] Squash it down to 1.0.0 and remove old/inflated releases --- README.md | 8 -------- shard.yml | 2 +- src/grip/application.cr | 10 ++++++++-- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 79d72c2..d4c62d0 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/shard.yml b/shard.yml index f705a9a..e42b1b3 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: grip -version: 5.0.0 +version: 1.0.0 authors: - Grip and its Contributors diff --git a/src/grip/application.cr b/src/grip/application.cr index 0bbe748..4daac4c 100644 --- a/src/grip/application.cr +++ b/src/grip/application.cr @@ -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 @@ -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