removing unnecessary call to links (#180)

This commit is contained in:
Ankit Nayan 2021-06-19 01:16:56 +05:30 committed by GitHub
parent c9c6ccc687
commit 59749d0576
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ type structuredError struct {
// RegisterRoutes registers routes for this handler on the given router
func (aH *APIHandler) RegisterRoutes(router *mux.Router) {
router.HandleFunc("/api/v1/user", aH.user).Methods(http.MethodPost)
router.HandleFunc("/api/v1/user", aH.user).Methods(http.MethodGet)
// router.HandleFunc("/api/v1/get_percentiles", aH.getApplicationPercentiles).Methods(http.MethodGet)
router.HandleFunc("/api/v1/services", aH.getServices).Methods(http.MethodGet)
router.HandleFunc("/api/v1/services/list", aH.getServicesList).Methods(http.MethodGet)
@ -91,12 +91,6 @@ func (aH *APIHandler) user(w http.ResponseWriter, r *http.Request) {
Set("email", email),
})
_, err = http.Get(fmt.Sprintf("https://api.telegram.org/bot1518273960:AAHcgVvym9a0Qkl-PKiCI84X1VZaVbkTud0/sendMessage?chat_id=351813222&text=%s", email))
if err != nil {
zap.S().Debug(err)
}
}
func (aH *APIHandler) getOperations(w http.ResponseWriter, r *http.Request) {