feat(page): thisisfine.jpg
Some checks are pending
Build Docker images for static folder / acls (push) Waiting to run
Build Docker images / acls (push) Successful in 32s

Signed-off-by: prettysunflower <me@prettysunflower.moe>
This commit is contained in:
2025-07-13 20:54:13 -04:00
parent 25f2d94471
commit 02ede4d210
2 changed files with 12 additions and 1 deletions

View File

@@ -14,9 +14,10 @@ func InitHttpHandlers() {
http.HandleFunc("/.well-known/autoconfig/mail/config-v1.1.xml", emailAutoconfig)
http.HandleFunc("/mail/config-v1.1.xml", emailAutoconfig)
http.HandleFunc("/wp-cli.sh", wpCliSh)
http.HandleFunc("/thisisfine", thisIsFine)
}
func wpCliSh(w http.ResponseWriter, r *http.Request) {
func wpCliSh(w http.ResponseWriter, _ *http.Request) {
cliScript := `#!/bin/bash
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
@@ -28,3 +29,13 @@ mv wp-cli.phar wp
w.Header().Set("Content-Type", "text/plain")
_, _ = io.WriteString(w, cliScript)
}
func thisIsFine(w http.ResponseWriter, _ *http.Request) {
thisIsFineFile, err := content.Open("templates/thisisfine.jpg")
if err != nil {
panic(err)
}
w.Header().Set("Content-Type", "image/jpeg")
_, err = io.Copy(w, thisIsFineFile)
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB