Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 1589

Extension Writers Discussion • Remove app.php from custom routes

$
0
0
Is there a way to remove the app.php file name from custom routes defined through extensions using the phpBB router?

I have the following code in my routing.yml file:

Code:

danieltj_api_default_route:    path: /api/v1    defaults: { _controller: danieltj.api.controller:default }

However I can only get to that page by going to:

Code:

DOMAIN/app.php/api/v1
I ask because I noticed that when you report a post, you get taken to the following URL:

Code:

DOMAIN/post/POSTID/report
Although, when visiting the FAQ page, you get taken to this URL:

Code:

DOMAIN/app.php/help/faq
Any ideas, please? 🙂

Statistics: Posted by danieltj — Mon Aug 12, 2024 8:31 pm



Viewing all articles
Browse latest Browse all 1589

Trending Articles