mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-06 15:22:47 +01:00
15 lines
371 B
Go
15 lines
371 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)
|
|
return response(s.database.LogList(ctx, id))
|
|
}
|