chore: Add static current user temporarily

This commit is contained in:
Faruk AYDIN
2021-10-13 12:12:29 +02:00
committed by Ali BARIN
parent c62c44b17e
commit a2a9bd9020
3 changed files with 30 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ import logger from './helpers/logger';
import morgan from './helpers/morgan';
import errorHandler from './helpers/error-handler';
import './config/database';
import authentication from './helpers/authentication';
const app = express();
const port = appConfig.port;
@@ -15,7 +16,8 @@ const port = appConfig.port;
app.use(morgan);
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(cors(corsOptions))
app.use(cors(corsOptions));
app.use(authentication);
app.use('/graphql', graphQLInstance);
// catch 404 and forward to error handler