Add favicon route

This commit is contained in:
Jacob Gunther
2023-07-20 14:13:25 -05:00
parent f925a29ac8
commit 484c0aceaa
3 changed files with 12 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ package main
import (
"bytes"
_ "embed"
"fmt"
"image"
"image/draw"
@@ -16,6 +17,11 @@ import (
"github.com/mineatar-io/skin-render"
)
var (
//go:embed favicon.ico
favicon []byte
)
// QueryParams is used by most all API routes as options for how the image should be rendered, or how errors should be handled.
type QueryParams struct {
Scale int `query:"scale"`