(c *gin.Context)
| 85 | } |
| 86 | |
| 87 | func (s *Server) handleGet(c *gin.Context) { |
| 88 | if !validateOrigin(c.Request) { |
| 89 | c.Status(http.StatusForbidden) |
| 90 | return |
| 91 | } |
| 92 | c.Header("Allow", "POST, DELETE") |
| 93 | c.Status(http.StatusMethodNotAllowed) |
| 94 | } |
| 95 | |
| 96 | func (s *Server) handlePost(c *gin.Context) { |
| 97 | if !validateOrigin(c.Request) { |