craftcms / element-api

Create a JSON API/Feed for your elements in Craft.
MIT License
498 stars 56 forks source link

Accessing api from a localized url gives Template Not Found error. #86

Closed a-am closed 5 years ago

a-am commented 5 years ago

We have several endpoints: 'api/livecontent.json' => [ when we try to access this through example.com/es/api/livecontent.json the system gives a Page Not Found Template Not Found error. If we access through the default site not the secondary localized site it works fine. Does a separate element-api.php config file need to be setup for the second locale?

khushbuyeole commented 4 years ago

I am facing same problem... Any suggestions??

brandonkelly commented 2 years ago

Just tested this locally and it’s working as expected. Let me know if you’re still needing help with this.