This commit is contained in:
2021-02-23 16:47:58 -07:00
parent 8f3217f3cc
commit 09f740f86a
3 changed files with 24 additions and 0 deletions

View File

@ -3,12 +3,17 @@ import { applyGraphQL } from "./graphql";
import { typeDefs, resolvers } from "./graphql/index";
import stoppable from "stoppable";
import cors from "@koa/cors";
const runtime: { server: undefined | stoppable.StoppableServer } = {
server: undefined,
};
async function main() {
const app = new Application();
app.use(cors());
app.use(
bodyParser({
enableTypes: ["json"],