Encrypted messaging app
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
335 B

package Messages
import (
"encoding/json"
"fmt"
"net/http"
"git.tovijaeschke.xyz/tovi/Envelope/Backend/Models"
)
func CreateMessage(w http.ResponseWriter, r *http.Request) {
var (
message Models.Message
err error
)
err = json.NewDecoder(r.Body).Decode(&message)
if err != nil {
return
}
fmt.Println(message)
}