Updated handler package
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package handler
|
||||
|
||||
import "net/http"
|
||||
|
||||
func DraftMessageHandler(w http.ResponseWriter, r *http.Request) {
|
||||
da := MessageItem{
|
||||
Id: 1,
|
||||
Message: "The Word",
|
||||
}
|
||||
|
||||
RespondWithJSON(w, http.StatusOK, da)
|
||||
}
|
||||
Reference in New Issue
Block a user