updates to identity site

This commit is contained in:
Xuu
2020-10-22 21:17:16 -06:00
parent 031fe1ac5e
commit c1fc005c78
8 changed files with 948 additions and 107 deletions

View File

@@ -24,6 +24,7 @@ func init() {
httpsrv.HttpRegister("image", httpsrv.HttpRoutes{
{Name: "getImage", Method: "GET", Pattern: "/i/{name}", HandlerFunc: a.get},
{Name: "putImage", Method: "PUT", Pattern: "/i", HandlerFunc: a.put},
{Name: "getStyle", Method: "GET", Pattern: "/{style:avatar|bg|cover}/", HandlerFunc: a.getStyle},
})
}
@@ -147,3 +148,7 @@ func isImageOrVideo(in io.Reader) bool {
}
return filetype.IsImage(buf) || filetype.IsVideo(buf)
}
func (a *Image) getStyle(w http.ResponseWriter, r *http.Request) {
}