mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
18 lines
306 B
Go
18 lines
306 B
Go
package service
|
|
|
|
import (
|
|
"context"
|
|
"net/http"
|
|
|
|
"github.com/gorilla/mux"
|
|
)
|
|
|
|
func decodeVerifyInviteRequest(ctx context.Context, r *http.Request) (interface{}, error) {
|
|
vars := mux.Vars(r)
|
|
token, ok := vars["token"]
|
|
if !ok {
|
|
return 0, errBadRoute
|
|
}
|
|
return verifyInviteRequest{Token: token}, nil
|
|
}
|