func (e *Endpoints) GetAttackByIDEndpoint(c *gin.Context) {
	id := c.Param("attackID")
	resp, err := e.dispatcher.Get(id)
	if err != nil {
		ginErrNotFound(c, err)
		return
	}
	c.JSON(http.StatusOK, resp)
}
GetAttackByIDEndpoint implements a handler for the GET /api/v1/attack/<attackID> endpoint
package endpoints
import (
	"net/http"
	"vegeta-server/models"
	"github.com/gin-gonic/gin"
)
func (e *Endpoints) PostAttackEndpoint(c *gin.Context) {
	var attackParams models.AttackParams
	if err := c.ShouldBindJSON(&attackParams); err != nil {
		ginErrBadRequest(c, err)
		return
	}
	resp, err := e.dispatcher.Dispatch(attackParams)
	if err != nil {
		ginErrInternalServerError(c, err)
		return
	}
	c.JSON(http.StatusOK, resp)
}