(params martini.Params)
| 128 | } |
| 129 | |
| 130 | func (s *apiServer) verifyXAuth(params martini.Params) error { |
| 131 | if s.topom.IsClosed() { |
| 132 | return ErrClosedTopom |
| 133 | } |
| 134 | xauth := params["xauth"] |
| 135 | if xauth == "" { |
| 136 | return errors.New("missing xauth, please check product name & auth") |
| 137 | } |
| 138 | if xauth != s.topom.XAuth() { |
| 139 | return errors.New("invalid xauth, please check product name & auth") |
| 140 | } |
| 141 | return nil |
| 142 | } |
| 143 | |
| 144 | func (s *apiServer) Overview() (int, string) { |
| 145 | o, err := s.topom.Overview() |
no test coverage detected