The app/admin/routes.ts file is the entry point for the backend application. All backend routes must be defined within the start.group route group.
| Method | Uri | Method | Description | Route Name |
|---|---|---|---|---|
| index() | /resource | GET | List page construction & pagination data acquisition & page rendering | resource.index |
| create() | /resource | GET | Create page construction | resource.create |
| store() | /resource | POST | Create data | resource.store |
| show() | /resource/:id | GET | Detail page construction & data acquisition | resource.show |
| edit() | /resource/:id | GET | Edit page construction | resource.edit |
| update() | /resource/:id | PUT | Update data | resource.update |
| destroy() | /resource/:id | DELETE | Delete data | resource.destroy |
If the built-in functionality cannot meet your needs, you only need to override the system routes in the start.override route group.