Commit fe34947
Refactor to unified index.php entry point
- Rename example/index.html to example/index.php
- Add PHP logic to handle both GET (HTML) and POST (API) requests
- Update api/index.php to require example/index.php
- Update vercel.json to route all requests to api/index.php
- Remove duplicate api/get.php (using example/get.php instead)
- Change fetch URL to window.location.pathname for universal routing
- Update autoload path to use dirname(__DIR__) pattern
- Matches proven Curler deployment pattern
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 51dc5dd commit fe34947
5 files changed
+20
-228
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
1 | 15 | | |
2 | 16 | | |
3 | 17 | | |
| |||
633 | 647 | | |
634 | 648 | | |
635 | 649 | | |
636 | | - | |
| 650 | + | |
637 | 651 | | |
638 | 652 | | |
639 | 653 | | |
| |||
1269 | 1283 | | |
1270 | 1284 | | |
1271 | 1285 | | |
1272 | | - | |
| 1286 | + | |
1273 | 1287 | | |
1274 | 1288 | | |
1275 | 1289 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
0 commit comments