Browse Source

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

Giorgi Kavrelishvili 2 years ago
parent
commit
6768e41a79
2 changed files with 5 additions and 2 deletions
  1. 3 1
      frameworks/Crystal/grip/grip.cr
  2. 2 1
      frameworks/Crystal/grip/shard.yml

+ 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