aboutsummaryrefslogtreecommitdiffhomepage
path: root/worker/main.go
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-08 20:24:20 +0900
committernsfisis <nsfisis@gmail.com>2024-08-08 20:24:20 +0900
commitbb62b6ff19d9f8008458d1c0ad0b8b76090f091e (patch)
tree27719c95313cc500eae01ca3ee2a1a007836599c /worker/main.go
parentf766fae6c0fb10b906224660c61c9693cf74c426 (diff)
parent6b74e3853ff183f63b6cd9b94331446a39d562a6 (diff)
downloadphperkaigi-2025-albatross-bb62b6ff19d9f8008458d1c0ad0b8b76090f091e.tar.gz
phperkaigi-2025-albatross-bb62b6ff19d9f8008458d1c0ad0b8b76090f091e.tar.zst
phperkaigi-2025-albatross-bb62b6ff19d9f8008458d1c0ad0b8b76090f091e.zip
Merge branch 'feat/worker-auth'
Diffstat (limited to 'worker/main.go')
-rw-r--r--worker/main.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/worker/main.go b/worker/main.go
index 51c0eb1..8134a56 100644
--- a/worker/main.go
+++ b/worker/main.go
@@ -4,7 +4,7 @@ import (
"log"
"net/http"
- // echojwt "github.com/labstack/echo-jwt/v4"
+ echojwt "github.com/labstack/echo-jwt/v4"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
)
@@ -19,10 +19,9 @@ func main() {
e.Use(middleware.Logger())
e.Use(middleware.Recover())
- // TODO: temporarily disabled
- // e.Use(echojwt.WithConfig(echojwt.Config{
- // SigningKey: []byte("TODO"),
- // }))
+ e.Use(echojwt.WithConfig(echojwt.Config{
+ SigningKey: []byte("TODO"),
+ }))
e.POST("/api/swiftc", handleSwiftCompile)
e.POST("/api/wasmc", handleWasmCompile)