diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-17 19:35:56 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-17 21:10:18 +0900 |
| commit | 95dd5f0c346d10c9a9497daf88cd199ce71c8122 (patch) | |
| tree | 6d3621b22cc44d7e93bc6a46b300479619d240d2 /backend/main.go | |
| parent | 48a70e06f54d81cdc6b0c22c2dcce8426b86decf (diff) | |
| download | iosdc-japan-2025-albatross-95dd5f0c346d10c9a9497daf88cd199ce71c8122.tar.gz iosdc-japan-2025-albatross-95dd5f0c346d10c9a9497daf88cd199ce71c8122.tar.zst iosdc-japan-2025-albatross-95dd5f0c346d10c9a9497daf88cd199ce71c8122.zip | |
feat(backend): fetch user icon from fortee
Diffstat (limited to 'backend/main.go')
| -rw-r--r-- | backend/main.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/backend/main.go b/backend/main.go index 3296957..890e666 100644 --- a/backend/main.go +++ b/backend/main.go @@ -96,6 +96,15 @@ func main() { return c.Redirect(http.StatusPermanentRedirect, "http://localhost:5173/iosdc-japan/2024/code-battle/logout") }) + // For local dev: This is never used in production because the reverse + // proxy directly handles /files. + filesGroup := e.Group("/iosdc-japan/2024/code-battle/files") + filesGroup.Use(middleware.StaticWithConfig(middleware.StaticConfig{ + Root: "/", + Filesystem: http.Dir("/data/files"), + IgnoreBase: true, + })) + go gameHubs.Run() go func() { |
