Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

api bağlantısına prefix eklenmeli #110

Open
saracalihan opened this issue Aug 6, 2021 · 1 comment
Open

api bağlantısına prefix eklenmeli #110

saracalihan opened this issue Aug 6, 2021 · 1 comment
Assignees
Labels
good first issue Good for newcomers invalid This doesn't seem right

Comments

@saracalihan
Copy link
Member

Okunurluğu arttırmak ve aynı isme sahip frontend ve API endpointlerinin çakışmaması için endpointlerinin başına prefix eklenmeli.

https://cli.vuejs.org/config/#devserver-proxy

Örnek olarak:

axios.post('/authentications/login/', {
  username: this.username,
  password: this.password
})

kullanmak yerine

axios.post('/api/authentications/login/', {
  username: this.username,
  password: this.password
})
@saracalihan saracalihan added good first issue Good for newcomers invalid This doesn't seem right labels Aug 6, 2021
@teathedev
Copy link

Bunu yapmak doğru olmayabilir. Çünkü zaten api reposu. O yüzden bu durumu orada çözmek yerine proxy'i kaldırıp bunu axios üzerinden çözmek daha sağlıklı

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants