commune-sh / commune-rs

Rust implementation of the Commune server.
https://commune.sh
Apache License 2.0
11 stars 3 forks source link

feat: api error codes and redacted secrets #6

Closed EstebanBorai closed 11 months ago

EstebanBorai commented 11 months ago

Provides Secret struct to keep sensitive data hidden, also Error Codes support. Makes sure core logic has correct error handling by enumerating errors from different cases and providing explicit Status Codes for each error.

Makes sure routes matches the ones under account, refer:

https://github.com/commune-os/commune-server/blob/df257384c8daede9fdf0e93c51af3c6444e15745/app/routes.go#L122-L164