mirror of
https://github.com/1f349/dendrite.git
synced 2025-03-31 01:05:14 +01:00
21 lines
442 B
Go
21 lines
442 B
Go
package readers
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/matrix-org/dendrite/clientapi/auth"
|
|
"github.com/matrix-org/util"
|
|
)
|
|
|
|
// Sync implements /sync
|
|
func Sync(req *http.Request) util.JSONResponse {
|
|
logger := util.GetLogger(req.Context())
|
|
userID, resErr := auth.VerifyAccessToken(req)
|
|
if resErr != nil {
|
|
return *resErr
|
|
}
|
|
|
|
logger.WithField("userID", userID).Info("Doing stuff...")
|
|
return util.MessageResponse(404, "Not implemented yet")
|
|
}
|