Update docs

This commit is contained in:
Andrew-71 2024-10-12 10:44:12 +03:00
parent c34f789567
commit 8fa3424a65
2 changed files with 7 additions and 3 deletions

View file

@ -9,10 +9,14 @@ with(out) blazingly fast cloud-native web3 memory-safe blockchain reactive AI
This should be done by **October 17th 2024**. Or, at the very least,
in a state that proves I am competent Go developer.
Note: **JSON** is used for storage at proof-of-concept stage for ease of use
Note: **JSON** is used for storage at proof-of-concept stage for ease of use,
obviously I'd use **SQL** for production
## Current functionality
* Port 7102
* `POST /register` - register a user with Basic Auth
* `POST /login` - get a JWT token by Basic Auth
* `GET /public-key` - get PEM-encoded public HS256 key
* `GET /public-key` - get PEM-encoded public HS256 key
* Data persistently stored in... `data.json`, for convenience
* HS256 key loaded from `key` file or generated on startup if missing

View file

@ -6,7 +6,7 @@ import (
)
func main() {
fmt.Println("=== PYE ===")
fmt.Println("=== Working on port 7102 ===")
router := http.NewServeMux()