mirror of
https://github.com/aleleba/create-node-ts-graphql-server.git
synced 2025-01-10 05:56:48 -06:00
Alejandro Lembke Barrientos
b55b0f61a9
Adding files from first version. Creating GraphQL server with their controllers and their models, squema and resolvers. Adding support to webpack and typescript.
13 lines
314 B
TypeScript
13 lines
314 B
TypeScript
'use strict';
|
|
|
|
// use this to set API REST
|
|
import express from 'express';
|
|
import bodyParser from 'body-parser';//bodyParser conversionde Api REST,
|
|
|
|
const apiRouter = express.Router();//Router de Express
|
|
|
|
apiRouter
|
|
.use(bodyParser.json())
|
|
.use(bodyParser.urlencoded({extended: false}));
|
|
|
|
export default apiRouter; |