Deployment Fix: Ensuring APK format and correct MIME type in backend

This commit is contained in:
vndangkhoa 2026-02-16 08:20:50 +07:00
parent 59290ca7f6
commit fffae35a52

View file

@ -3,6 +3,7 @@ package main
import (
"log"
"net/http"
"mime"
"os"
"path/filepath"
"strings"
@ -18,6 +19,9 @@ import (
)
func main() {
// Register .apk MIME type
mime.AddExtensionType(".apk", "application/vnd.android.package-archive")
// Initialize Database
dbPath := os.Getenv("DATABASE_URL")
if dbPath == "" {