From 08fbcf77b1c263e4198c8c7dc3fc4eb682662812 Mon Sep 17 00:00:00 2001 From: Lucas Date: Thu, 15 Jan 2026 14:28:52 +0100 Subject: [PATCH] feat: add route to download mobile apk --- client.apk | 1 + download/apk.go | 7 +++++++ router/router.go | 2 ++ 3 files changed, 10 insertions(+) create mode 100644 client.apk create mode 100644 download/apk.go diff --git a/client.apk b/client.apk new file mode 100644 index 0000000..6b2b991 --- /dev/null +++ b/client.apk @@ -0,0 +1 @@ +"wallah je suis l'apk" diff --git a/download/apk.go b/download/apk.go new file mode 100644 index 0000000..aa28b14 --- /dev/null +++ b/download/apk.go @@ -0,0 +1,7 @@ +package download + +import "github.com/gin-gonic/gin" + +func DownloadApk(ctx *gin.Context) { + ctx.File("./client.apk") +} diff --git a/router/router.go b/router/router.go index dc8887b..0a4e14e 100644 --- a/router/router.go +++ b/router/router.go @@ -5,6 +5,7 @@ import ( "github.com/ValianceTekProject/AreaBack/authentification" "github.com/ValianceTekProject/AreaBack/controller" + "github.com/ValianceTekProject/AreaBack/download" "github.com/ValianceTekProject/AreaBack/engine" "github.com/ValianceTekProject/AreaBack/middleware" "github.com/gin-contrib/cors" @@ -44,6 +45,7 @@ func setupAuthRouter(router *gin.Engine) *gin.Engine { router.GET("/auth/discord/callback", authentification.DiscordCallback) router.GET("/about.json", engine.GetAbout) + router.GET("/client.apk", download.DownloadApk) return router }