aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/api/handler.go
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-02-14 11:52:56 +0900
committernsfisis <nsfisis@gmail.com>2026-02-14 11:53:08 +0900
commit2889b562e64993482bd13fd806af8ed0865bab8b (patch)
tree39400ac4d994fb33d2c544e7d4b9d98f8ecbd86a /backend/api/handler.go
parente216c3bc97994b4172d15d52b46d5f6b75f35ea4 (diff)
downloadfeedaka-2889b562e64993482bd13fd806af8ed0865bab8b.tar.gz
feedaka-2889b562e64993482bd13fd806af8ed0865bab8b.tar.zst
feedaka-2889b562e64993482bd13fd806af8ed0865bab8b.zip
refactor: migrate API from GraphQL to REST (TypeSpec/OpenAPI)
Replace the entire GraphQL stack (gqlgen, urql, graphql-codegen) with a TypeSpec → OpenAPI 3.x pipeline using oapi-codegen for Go server stubs and openapi-fetch + openapi-typescript for the frontend client. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'backend/api/handler.go')
-rw-r--r--backend/api/handler.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/backend/api/handler.go b/backend/api/handler.go
new file mode 100644
index 0000000..c5df375
--- /dev/null
+++ b/backend/api/handler.go
@@ -0,0 +1,16 @@
+package api
+
+import (
+ "database/sql"
+
+ "undef.ninja/x/feedaka/auth"
+ "undef.ninja/x/feedaka/db"
+)
+
+type Handler struct {
+ DB *sql.DB
+ Queries *db.Queries
+ SessionConfig *auth.SessionConfig
+}
+
+var _ StrictServerInterface = (*Handler)(nil)