From 916ecdd0ebfd8772f508daf19954cf50d283016c Mon Sep 17 00:00:00 2001 From: ganger Date: Sun, 5 May 2024 14:14:28 +0300 Subject: [PATCH] post exist building --- cmd/main/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/main/main.go b/cmd/main/main.go index 4792d63..db7df29 100644 --- a/cmd/main/main.go +++ b/cmd/main/main.go @@ -111,7 +111,7 @@ func main() { advert.Handle("/{id}/like", jwtMd.JwtTMiddleware(http.HandlerFunc(advertHandler.LikeAdvert))).Methods(http.MethodPost, http.MethodOptions) advert.Handle("/{id}/dislike", jwtMd.JwtTMiddleware(http.HandlerFunc(advertHandler.DislikeAdvert))).Methods(http.MethodPost, http.MethodOptions) advert.Handle("/houses/", jwtMd.JwtTMiddleware(http.HandlerFunc(advertHandler.CreateHouseAdvert))).Methods(http.MethodPost, http.MethodOptions) - advert.HandleFunc("/building/", advertHandler.GetExistBuildingByAddress).Methods(http.MethodGet, http.MethodOptions) + advert.HandleFunc("/building/", advertHandler.GetExistBuildingByAddress).Methods(http.MethodPost, http.MethodOptions) advert.Handle("/flats/", jwtMd.JwtTMiddleware(http.HandlerFunc(advertHandler.CreateFlatAdvert))).Methods(http.MethodPost, http.MethodOptions) advert.HandleFunc("/squarelist/", advertHandler.GetSquareAdvertsList).Methods(http.MethodGet, http.MethodOptions) advert.HandleFunc("/rectanglelist/", advertHandler.GetRectangeAdvertsList).Methods(http.MethodGet, http.MethodOptions)