Pārlūkot izejas kodu

Add simple GET route for debugging

master
Dylan Baker 5 gadus atpakaļ
vecāks
revīzija
221249c96c
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4
    0
      figbot.rb

+ 4
- 0
figbot.rb Parādīt failu

@@ -67,6 +67,10 @@ def uses_emoji(opts)
67 67
   (opts[:space][0] == ':' and opts[:space][-1] == ':') or (opts[:ink][0] == ':' and opts[:ink][-1] == ':')
68 68
 end
69 69
 
70
+get '/' do
71
+  'FigBot'
72
+end
73
+
70 74
 post '/' do
71 75
     content_type :json
72 76
     {

Notiek ielāde…
Atcelt
Saglabāt