mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-06 15:22:47 +01:00
16 lines
412 B
Go
16 lines
412 B
Go
package service
|
|
|
|
import (
|
|
"context"
|
|
"net/url"
|
|
|
|
"github.com/SecurityBrewery/catalyst/generated/restapi/api"
|
|
"github.com/SecurityBrewery/catalyst/generated/restapi/operations/logs"
|
|
)
|
|
|
|
func (s *Service) GetLogs(ctx context.Context, params *logs.GetLogsParams) *api.Response {
|
|
id, _ := url.QueryUnescape(params.Reference)
|
|
i, err := s.database.LogList(ctx, id)
|
|
return s.response(ctx, "GetLogs", nil, i, err)
|
|
}
|