2 changed files with 0 additions and 21 deletions
@ -1,15 +0,0 @@ |
|||||
const express = require('express'); |
|
||||
const app = express(); |
|
||||
|
|
||||
app.use((req, res, next) => { |
|
||||
res.setHeader("Access-Control-Allow-Origin", "*"); |
|
||||
res.setHeader("Access-Control-Allow-Headers", "Origin, X-Requested-Width, Content-Type, Accept"); |
|
||||
res.setHeader("Access-Control-Allow-Methods", "GET, POST, PATCH, DELETE, OPTIONS"); |
|
||||
next(); |
|
||||
}); |
|
||||
|
|
||||
const uploadReplay = require('./routes/upload-replay'); |
|
||||
|
|
||||
app.use('/api/upload-replay', uploadReplay); |
|
||||
|
|
||||
module.exports = app; |
|
||||
@ -1,6 +0,0 @@ |
|||||
import {Request, Response} from "express"; |
|
||||
import * as express from 'express'; |
|
||||
const bodyParser = require('body-parser'); |
|
||||
const cookieParser = require('cookie-parser'); |
|
||||
import * as jwt from 'jsonwebtoken'; |
|
||||
import * as fs from "fs"; |
|
||||
Loading…
Reference in new issue