Below is my code in web.php
$api->get('admin/views/query/new_query', 'AdminViewsController@answer_to_query');
In my controller:
public function answer_to_query() {
return view('admin.query.new_query');
}
In my view:
<div class="btn-group">
<a href="#/query_list/answer_to_query" class="btn btn-xs green" type="button" data-toggle="dropdown" aria-expanded="false" ui-sref="querydtlsController"> View<i class="fa fa-angle"></i>
</a>
</div>
I dont know how to call my method answer_to_query
from above page to display my new_query
page.