mirror of
https://github.com/status-im/fathom.git
synced 2025-03-01 11:30:28 +00:00
15 lines
362 B
Go
15 lines
362 B
Go
package api
|
|
|
|
import (
|
|
"github.com/usefathom/fathom/pkg/models"
|
|
"net/http"
|
|
)
|
|
|
|
// URL: /api/stats/referrer
|
|
var GetReferrerStatsHandler = HandlerFunc(func(w http.ResponseWriter, r *http.Request) error {
|
|
// before, after := getRequestedPeriods(r)
|
|
// limit := getRequestedLimit(r)
|
|
var result []*models.ReferrerStats
|
|
return respond(w, envelope{Data: result})
|
|
})
|