Add hello world http methode and test

This commit is contained in:
Hanzei 2018-10-02 23:41:34 +02:00
parent 5befc9b69f
commit c1397f440e
No known key found for this signature in database
GPG key ID: 69A2DEFD98937BA0
2 changed files with 32 additions and 0 deletions

View file

@ -1,6 +1,8 @@
package main
import (
"fmt"
"net/http"
"sync"
"github.com/mattermost/mattermost-server/plugin"
@ -17,4 +19,8 @@ type Plugin struct {
configuration *configuration
}
func (p *Plugin) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello, world!")
}
// See https://developers.mattermost.com/extend/plugins/server/reference/