Skip to content

Commit

Permalink
Change the api endpoints for more control
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelreichor committed Nov 8, 2024
1 parent baad9b5 commit f190b10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/QueryApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ private function attachEventHandlers(): void
Event::on(UrlManager::class, UrlManager::EVENT_REGISTER_SITE_URL_RULES,
function(RegisterUrlRulesEvent $event) {
$event->rules = array_merge($event->rules, [
'GET /<version>/api/customQuery' => 'craft-query-api/default/get-custom-query-result',
'GET /<version>/api/allRoutes' => 'craft-query-api/default/get-all-routes',
'GET /<version>/api/allRoutes/<siteId>' => 'craft-query-api/default/get-all-routes',
'GET /<version>/api/queryApi/customQuery' => 'craft-query-api/default/get-custom-query-result',
'GET /<version>/api/queryApi/allRoutes' => 'craft-query-api/default/get-all-routes',
'GET /<version>/api/queryApi/allRoutes/<siteId>' => 'craft-query-api/default/get-all-routes',
]);
}
);
Expand Down

0 comments on commit f190b10

Please sign in to comment.