projects
/
kraftakt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d7a4cd5
)
Small cleanup.
author
Florian Forster
<ff@octo.it>
Wed, 10 Jan 2018 21:03:15 +0000
(22:03 +0100)
committer
Florian Forster
<ff@octo.it>
Wed, 10 Jan 2018 21:03:15 +0000
(22:03 +0100)
gfitsync.go
patch
|
blob
|
history
diff --git
a/gfitsync.go
b/gfitsync.go
index
898fb98
..
25df282
100644
(file)
--- a/
gfitsync.go
+++ b/
gfitsync.go
@@
-40,10
+40,6
@@
func (hndl ContextHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
type AuthenticatedHandler func(context.Context, http.ResponseWriter, *http.Request, *app.User) error
type AuthenticatedHandler func(context.Context, http.ResponseWriter, *http.Request, *app.User) error
-type User struct {
- ID string
-}
-
func (hndl AuthenticatedHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
ctx := appengine.NewContext(r)
func (hndl AuthenticatedHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
ctx := appengine.NewContext(r)
@@
-92,8
+88,7
@@
func indexHandler(ctx context.Context, w http.ResponseWriter, r *http.Request, u
}
func setupHandler(w http.ResponseWriter, r *http.Request) {
}
func setupHandler(w http.ResponseWriter, r *http.Request) {
- url := fitbit.AuthURL()
- http.Redirect(w, r, url, http.StatusTemporaryRedirect)
+ http.Redirect(w, r, fitbit.AuthURL(), http.StatusTemporaryRedirect)
}
func fitbitGrantHandler(ctx context.Context, w http.ResponseWriter, r *http.Request, u *app.User) error {
}
func fitbitGrantHandler(ctx context.Context, w http.ResponseWriter, r *http.Request, u *app.User) error {