Compare commits
2 Commits
25f2d94471
...
main
Author | SHA1 | Date | |
---|---|---|---|
18134efa99
|
|||
02ede4d210
|
@@ -24,7 +24,7 @@
|
||||
<a href="/blog/">Blog</a>
|
||||
<a href="/regio43/">regio43</a>
|
||||
<a href="https://git.prettysunflower.moe/prettysunflower/">Git</a>
|
||||
<a href="https://linkding.prettysunflower.moe/bookmarks/shared">Bookmarks</a>
|
||||
<a href="https://karakeep.prettysunflower.moe/public/lists/b1nui2h65hi7sn17r5vtsjum">Bookmarks</a>
|
||||
<a href="/keys">Public keys</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -56,7 +56,7 @@
|
||||
<a href="https://privatebin.remilia.koumbit.org/">Privatebin</a>
|
||||
<a href="https://qr.prettysunflower.moe">QR Generator</a>
|
||||
<a href="https://invidious.prettysunflower.moe">Invidious</a>
|
||||
<a href="https://linkding.prettysunflower.moe/bookmarks/shared">Linkding</a>
|
||||
<a href="https://karakeep.prettysunflower.moe/public/lists/b1nui2h65hi7sn17r5vtsjum">Karakeep</a>
|
||||
<a href="https://httpdebug.remilia.koumbit.org">HTTP Debug</a>
|
||||
<a href="https://pad.sunflower.lgbt">Etherpad</a>
|
||||
</div>
|
||||
|
@@ -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)
|
||||
}
|
||||
|
BIN
pages/templates/thisisfine.jpg
Normal file
BIN
pages/templates/thisisfine.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 41 KiB |
Reference in New Issue
Block a user