Skip to content

Commit

Permalink
fixed swagger url according to route
Browse files Browse the repository at this point in the history
  • Loading branch information
RabbITCybErSeC committed Jun 17, 2024
1 parent 4ff63a8 commit 0034c18
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions routes/reporter/reporter_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package reporter

import (
"net/http"
"reflect"

"soarca/internal/controller/informer"

"reflect"
"soarca/routes/error"

"github.com/gin-gonic/gin"
Expand Down Expand Up @@ -41,7 +42,7 @@ func NewExecutionInformer(informer informer.IExecutionInformer) *executionInform
// @Produce json
// @success 200 {array} string
// @error 400
// @Router /report/ [GET]
// @Router /reporter/ [GET]
func (executionInformer *executionInformer) getExecutions(g *gin.Context) {
executions, err := executionInformer.informer.GetExecutions()
if err != nil {
Expand All @@ -62,7 +63,7 @@ func (executionInformer *executionInformer) getExecutions(g *gin.Context) {
// @Produce json
// @success 200 {object} api.PlaybookExecutionReport
// @error 400
// @Router /report/:id [GET]
// @Router /reporter/:id [GET]
func (executionInformer *executionInformer) getExecutionReport(g *gin.Context) {
id := g.Param("id")
log.Trace("Trying to obtain execution for id: ", id)
Expand Down

0 comments on commit 0034c18

Please sign in to comment.