I will hopefully make my own webring with a simple API and an Admin UI
I will hopefully make my own webring with a simple API and an Admin UI
Made documentation for the current API. I still need to add a handful of endpoints, but I wanted to document it to make it easier to use :3
Rendered version: https://git.gay/rmamet/webring/src/branch/main/api_spec.md
Log in to leave a comment
To take a break from the auth system, i quickly read the wiki on Build Scripts, and let it show the git commit hash on a GET request of / :3
Log in to leave a comment
Add auth system! Has a JWT system to verify the user, with expirations. Token is required to add/remove websites from the ring. The passwords are hashed with argon2, and validation can be seen in the screenshot :D
(That was complex, and I genuinely thought I did a devlog for this before, but apparently not)
Log in to leave a comment
I set up an endpoint (/ring) to add and remove websites from webring using POST and DELETE headers. Its all saved in a json file, alongside the config. I also made sure to double check if the specific website is on the ring yet when trying to add or delete a ring (to prevent accidental confirmations that I almost forgot about)
Log in to leave a comment
Whoopsies! almost forgor im supposed to do dev logs!
Log in to leave a comment
okay cool! this is technically my first ever rust project, but I have made a few rust pull requests so it isn’t complete basics!
I found a library (rouille) that makes it easier to host an HTTP server, and made a simple thing that just shows text.
This is cool, trust me :3
uhh yeah :3
Log in to leave a comment