No description
- Go 88.5%
- CSS 9.6%
- Dockerfile 1.9%
| .gitignore | include go.sum | |
| compose.yaml | add docker config | |
| Dockerfile | fix setup | |
| go.mod | initial commit | |
| go.sum | include go.sum | |
| README.md | new api endpoint | |
| styles.css | new api endpoint | |
| webring.go | new api endpoint | |
CSSA Webring V2
An alternate API to the "Official" CSSA Webring. The original API serves a JSON file which requires parsing at runtime. I prefer avoiding JavaScript when possible and loading external resources with PHP causes slowdowns when accessing the site. This API serves an HTTP redirect to the requested site rather than a file.
Running
Simply run docker compose up. The site will be accessible on port 8900.
API Description
/[?curr=<url>&si=<url>]- Display sites in the webring using an
iframe. This serves as a good workaround in cases where links are broken. If nocurrquery parameter is provided, it will display a random site. If ansiquery parameter is passed and there is nocurrparameter, serve a random site that does not have thesiURL. /prev/<url>- Access the previous entry in the webring
/next/<url>- Access the next entry in the webring
/random[?si=<url>]- Access a random entry in the webring. If an
siquery parameter is passed, do not serve the site corresponding to that URL.