added chapter view, fixes, added ratings, added chapter updates/deletions

This commit is contained in:
lnn0q 2025-06-01 00:37:26 +03:00
parent 029b7e9353
commit 4801cf3a13
34 changed files with 1345 additions and 191 deletions

View file

@ -6,6 +6,7 @@ import cors from 'cors';
import 'dotenv/config';
import express from 'express';
import fs from 'fs';
import { GraphQLJSON } from 'graphql-scalars';
import https from 'https';
import path from 'path';
import ViteExpress from 'vite-express';
@ -26,6 +27,7 @@ const server = https.createServer({ key, cert }, app);
const typeDefs = fs.readFileSync(path.join(__dirname, 'graphql', 'schema.graphql'), 'utf8');
const resolvers = {
JSON: GraphQLJSON,
Query,
Mutation
// Subscription,