# auth_service - [routes](#routes) - [build](#build) - [configure](#configure) - [exaple](#example) ## routes - `/api/token` - Auth by username/password return token - `/api/token/verify` - Verify token - `/api/access` - Access request by token - `/api/register` - Register user - `/api/users` - Get all users data - `/api/users/user` - Get user data - `/api/users/password` - Change user password - `/api/users/change` - Change user data - `/api/users/del` - Delete user - `/api/users/add` - Add user ## buuild ```shell go build ``` ## configure ### example ``` USERS_FILE=users.json USERS_DB=users.db ENABLE_SELF_REGISTER=false ENABLE_TLS=false CERT_FILE=/data/file.crt KEY_FILE=/data/file/key SERVER_ADDRESS=0.0.0.0 SERVER_PORT=8090 ```