updates to identity site
This commit is contained in:
@@ -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) {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user