mirror of
https://github.com/aleleba/create-node-ts-graphql-server.git
synced 2025-06-20 12:58:24 -06:00
PR-448199:
Moving Server to src directory.
This commit is contained in:
13
src/routes/index.ts
Normal file
13
src/routes/index.ts
Normal file
@ -0,0 +1,13 @@
|
||||
'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;
|
Reference in New Issue
Block a user