i'm working on laravel 5 project , i'm using ajax call. weird happening. have error. 404 not found
http://localhost/qms/public/crm/api/questions/childcount?colheader=guidedogs_001 it's ajax call. route is
route::get('api/questions/childcount', 'questioncontroller@apiquestionchildcount'); now, know url in error page appends crm after public update route
route::get('crm/api/questions/childcount', 'questioncontroller@apiquestionchildcount'); then when try again still 404 not found error url being
http://localhost/qms/public/crm/crm/api/questions/childcount?colheader=guidedogs_001 it's appending crm
what problem? works , not. calling ajax request in page http://localhost/qms/public/crm/create
it works now, figured out, on javascript it's api/questions/childcount , route needs crm/api/questions/childcount. dunno what's happening.
Comments
Post a Comment