This is my first time doing such a project, so I asked the teacher for guidance.
The data API is as follows:
1. User--》Administrator login (/api/lock/admin/user/admin/login) POST
Data request list
{ "account": "string", "password": "string" } 数据类型: application/json
2. Administrator--》Create Administrator (/api/lock/admin/create) POST
Data request example
{ "account": "string", "confirmPassword": "string", "nickName": "string", "password": "string" } 数据类型: application/json
You can just write it directly in web.php
There is nothing wrong with connecting this through the given API data interface
I don’t know what your specific problem is?