Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

place endpoint are added #3

Merged
merged 12 commits into from
Sep 29, 2024
Merged

place endpoint are added #3

merged 12 commits into from
Sep 29, 2024

Conversation

timurIsaevIY
Copy link
Collaborator

No description provided.

@timurIsaevIY
Copy link
Collaborator Author

почему мы храним это в папке auth, если это никак с авторизацией не связано

cmd/main.go Outdated Show resolved Hide resolved
cmd/main.go Outdated Show resolved Hide resolved
cmd/main.go Outdated Show resolved Hide resolved
internal/pkg/places/delivery/http.go Outdated Show resolved Hide resolved
internal/pkg/places/interfaces.go Outdated Show resolved Hide resolved
internal/pkg/places/usecase/usecase.go Outdated Show resolved Hide resolved
internal/pkg/places/repo/repo.go Outdated Show resolved Hide resolved
internal/pkg/places/delivery/http.go Outdated Show resolved Hide resolved
images/image1.png Outdated Show resolved Hide resolved
cmd/main.go Outdated Show resolved Hide resolved
cmd/main.go Outdated Show resolved Hide resolved
cmd/main.go Outdated Show resolved Hide resolved
images/image1.png Outdated Show resolved Hide resolved
w.Header().Set("Access-Control-Allow-Methods", "POST,PUT,DELETE,GET")
w.Header().Set("Access-Control-Allow-Headers", "Content-Type")
w.Header().Set("Access-Control-Allow-Credentials", "true")
w.Header().Set("Access-Control-Allow-Origin", r.Header.Get("Origin"))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вот это плохо. Суть CORS в том, что бэкенд отдает этим заголовком информацию браузеру, с каких сайтов (Origin) пропускать запросы на бэк. А мы таким образом будем позволять браузеру отправлять запросы на бэк с любого сайта. В общем смотри инфу про cors (например тут).

internal/pkg/middleware/cors.go Outdated Show resolved Hide resolved
cmd/main.go Outdated Show resolved Hide resolved
cmd/main.go Outdated Show resolved Hide resolved
@timurIsaevIY timurIsaevIY merged commit a40f7cf into dev Sep 29, 2024
1 of 2 checks passed
vr009 pushed a commit that referenced this pull request Sep 30, 2024
* place endpoint are added

* errors fixed

* json

* nginx are added

* errors fixed

* docker changed

* errors fixed

* errors fixed

* errors fixed

* errors fixed

* errors fixed
vr009 pushed a commit that referenced this pull request Sep 30, 2024
* place endpoint are added

* errors fixed

* json

* nginx are added

* errors fixed

* docker changed

* errors fixed

* errors fixed

* errors fixed

* errors fixed

* errors fixed
timurIsaevIY added a commit that referenced this pull request Sep 30, 2024
* place endpoint are added

* errors fixed

* json

* nginx are added

* errors fixed

* docker changed

* errors fixed

* errors fixed

* errors fixed

* errors fixed

* errors fixed
@vr009 vr009 deleted the Task_getPlace branch October 1, 2024 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants