apollo-backend/internal/api/receipt.go
Andre Medeiros 993c07938c ALL THE API
2021-08-08 14:19:47 -04:00

32 lines
611 B
Go

package api
import (
"net/http"
)
const receiptResponse = `{
"products": [
{
"name": "ultra",
"status": "SANBOX",
"subscription_type": "SANDBOX"
},
{
"name": "pro",
"status": "SANDBOX"
},
{
"name": "community_icons",
"status": "SANDBOX"
},
{
"name": "spca",
"status": "SANDBOX"
}
]
}`
func (a *api) checkReceiptHandler(w http.ResponseWriter, r *http.Request) {
w.Write([]byte(receiptResponse))
w.WriteHeader(http.StatusOK)
}