UNPKG

web3.db-fileconnector

Version:

GraphQL System Built on web3 technologies. Web3.DB is an open database built on top of web3 technologies. It is a decentralized, open-source database that allows users to store and query data in a secure and efficient manner. The system is designed to be

13 lines (9 loc) 374 B
import ApiRoutes from "./api/index.js"; import GraphQLRoute from "./graphql/index.js"; export default async function (server, opts) { await server.register(ApiRoutes, { prefix: "/api" }); await server.register(GraphQLRoute); // Healthcheck endpoint // TODO: Deprecate and replace with a prefixed /api/ping server.get("/health", async () => "OK"); }