update readme

This commit is contained in:
muhammadeko 2022-05-15 06:51:39 +07:00
parent fd9d4e505c
commit 21b0a44ce7
No known key found for this signature in database
GPG Key ID: 51366716C10E98B1

View File

@ -16,7 +16,7 @@ Grasscutter Authentication System
- To use access control, you need set the `ACCESS_KEY` in config.json inside plugins/GCAuth. (Optional) - To use access control, you need set the `ACCESS_KEY` in config.json inside plugins/GCAuth. (Optional)
- All payload must be send with `application/json` and Compact JSON format ( without unnecessary spaces ) - All payload must be send with `application/json` and Compact JSON format ( without unnecessary spaces )
- Auth endpoint is: - Auth endpoint is:
- Authentication Checking : `/authentication/type` (GET) , it'll return `me.exzork.gcauth.handler.GCAuthAuthentication` if GCAuth is loaded and enabled. - Authentication Checking : `/authentication/type` (GET) , it'll return `GCAuthAuthentication` if GCAuth is loaded and enabled.
- Register: `/authentication/register` (POST) - Register: `/authentication/register` (POST)
``` ```
{"username":"username","password":"password","password_confirmation":"password_confirmation"} {"username":"username","password":"password","password_confirmation":"password_confirmation"}