Pārlūkot izejas kodu

Update from grip/1 to grip/2 (#7663)

Giorgi Kavrelishvili 2 gadi atpakaļ
vecāks
revīzija
6768e41a79

+ 3 - 1
frameworks/Crystal/grip/grip.cr

@@ -120,7 +120,9 @@ class Fortunes < Grip::Controllers::Http
 end
 
 class Application < Grip::Application
-  def routes
+  def initialize
+    super(environment: "production", serve_static: false)
+
     get "/json", Json
     get "/plaintext", Plaintext
     get "/db", Db

+ 2 - 1
frameworks/Crystal/grip/shard.yml

@@ -1,9 +1,10 @@
 name: grip
-version: 0.1.1
+version: 0.2.0
 
 dependencies:
   grip:
     github: grip-framework/grip
+    version: 2.0.0
 
   pg:
     github: will/crystal-pg