shift-org / shift-org/shift-docs
Allow API calls to be made without `.php` in the path
@aaronminnick is already working on this.
Since Jan 28, 2025.
- Dominant language
- JavaScript
- Stars
- 30
- Forks
- 25
- Avg merge
- 9m
- Merged PRs (30d)
- 1
Description
For backwards compatibility while transitioning the backend from PHP to Node, we intentionally maintained .php in API paths even though they were no longer PHP files, e.g. https://localhost:4443/api/events.php?startdate=2019-06-01&enddate=2019-06-15
(See implementation in https://github.com/shift-org/shift-docs/blob/main/app/app.js#L52)
We should drop .php from the canonical URLs, e.g. https://localhost:4443/api/events?startdate=2019-06-01&enddate=2019-06-15
For backwards compatibility we should proxy/redirect the .php paths to the new canonical path, but encourage clients to update their API calls to the new path.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.