mirror of
https://github.com/status-im/fathom.git
synced 2025-03-02 20:10:27 +00:00
15 lines
348 B
Go
15 lines
348 B
Go
|
package api
|
||
|
|
||
|
import (
|
||
|
"github.com/usefathom/fathom/pkg/models"
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
// URL: /api/stats/page
|
||
|
var GetPageStatsHandler = HandlerFunc(func(w http.ResponseWriter, r *http.Request) error {
|
||
|
//before, after := getRequestedPeriods(r)
|
||
|
//limit := getRequestedLimit(r)
|
||
|
var result []*models.PageStats
|
||
|
return respond(w, envelope{Data: result})
|
||
|
})
|