mirror of
https://github.com/Ratstail91/sineQL.git
synced 2025-11-29 10:44:28 +11:00
Added CORS middleware
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
//express for testing
|
||||
const express = require('express');
|
||||
const cors = require('cors');
|
||||
const bodyParser = require('body-parser');
|
||||
|
||||
const app = express();
|
||||
|
||||
app.use(cors());
|
||||
app.use(bodyParser.text());
|
||||
|
||||
//test the library
|
||||
|
||||
Reference in New Issue
Block a user