Debian Codegraph @

server/reports.go

raw
1 package server
2
3 import (
4 "net/http"
5
6 "github.com/gin-gonic/gin"
7 )
8
9 func (s *Server) handlePostReportBug() gin.HandlerFunc {
10 return func(c *gin.Context) {
11 if _, err := c.MultipartForm(); err != nil {
12 _ = c.AbortWithError(http.StatusBadRequest, err)
13 return
14 }
15 }
16 }