Update docs
This commit is contained in:
parent
c34f789567
commit
8fa3424a65
2 changed files with 7 additions and 3 deletions
|
@ -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
|
2
main.go
2
main.go
|
@ -6,7 +6,7 @@ import (
|
|||
)
|
||||
|
||||
func main() {
|
||||
fmt.Println("=== PYE ===")
|
||||
fmt.Println("=== Working on port 7102 ===")
|
||||
|
||||
router := http.NewServeMux()
|
||||
|
||||
|
|
Loading…
Reference in a new issue