diff options
Diffstat (limited to 'appservice/server.go')
-rw-r--r-- | appservice/server.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/appservice/server.go b/appservice/server.go index 395d383..8e4c263 100644 --- a/appservice/server.go +++ b/appservice/server.go @@ -16,6 +16,7 @@ type Config struct { Server string DbType string DbPath string + MatrixDomain string } @@ -33,6 +34,7 @@ func Start(r *mxlib.Registration, c *Config) (chan error, error) { router := mux.NewRouter() router.HandleFunc("/_matrix/app/v1/transactions/{txnId}", handleTxn) + router.HandleFunc("/transactions/{txnId}", handleTxn) errch := make(chan error) go func() { @@ -68,5 +70,5 @@ func handleTxn(w http.ResponseWriter, r *http.Request) { log.Printf("Got transaction %#v\n", txn) - fmt.Fprintf(w, "{}") + fmt.Fprintf(w, "{}\n") } |