Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions client.apk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"wallah je suis l'apk"
7 changes: 7 additions & 0 deletions download/apk.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package download

import "github.com/gin-gonic/gin"

func DownloadApk(ctx *gin.Context) {
ctx.File("./client.apk")
}
2 changes: 2 additions & 0 deletions router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}
Expand Down