From 2889b562e64993482bd13fd806af8ed0865bab8b Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 14 Feb 2026 11:52:56 +0900 Subject: refactor: migrate API from GraphQL to REST (TypeSpec/OpenAPI) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- backend/api/handler.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 backend/api/handler.go (limited to 'backend/api/handler.go') 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) -- cgit v1.3-1-g0d28