commit e2b5d996cddfd48e21fae804f8deea93cedab23b
parent 012c73171ccbca6794c945dd4c892093b4be015e
Author: MTRNord <mtrnord1@gmail.com>
Date: Thu, 28 Jun 2018 20:18:36 +0200
Send fake resp
Diffstat:
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/.idea/usage.statistics.xml b/.idea/usage.statistics.xml
@@ -38,14 +38,14 @@
<session id="958628364">
<usages-collector id="statistics.file.extensions.edit">
<counts>
- <entry key="go" value="77" />
- <entry key="txt" value="53" />
+ <entry key="go" value="78" />
+ <entry key="txt" value="82" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.types.edit">
<counts>
- <entry key="Go" value="77" />
- <entry key="PLAIN_TEXT" value="53" />
+ <entry key="Go" value="78" />
+ <entry key="PLAIN_TEXT" value="82" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.extensions.open">
diff --git a/pkg/webhook/webhook.go b/pkg/webhook/webhook.go
@@ -104,13 +104,13 @@ func MessagesEndPoint(rw http.ResponseWriter, req *http.Request) {
}
// Do things with the context you just retrieved
- /*dff := &df.Fulfillment{
+ dff := &df.Fulfillment{
FulfillmentMessages: df.Messages{
df.ForGoogle(df.SingleSimpleResponse("hello", "hello")),
{RichMessage: df.Text{Text: []string{"hello"}}},
},
- }*/
+ }
rw.Header().Set("Content-Type", "application/json")
rw.WriteHeader(http.StatusOK)
- //json.NewEncoder(rw).Encode(dff)
+ json.NewEncoder(rw).Encode(dff)
}