1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 11:24:35 +00:00

chore: restructure repo into sub folders

This commit is contained in:
2021-10-20 11:43:10 +00:00
parent 99d55775aa
commit d530e0801e
28 changed files with 18 additions and 2 deletions

View File

@@ -5,6 +5,6 @@ const app = express()
app.use(express.json({ limit: '50mb' }))
app.use('/', indexRouter)
app.use(express.static(path.join(__dirname, '..', 'web', 'build')))
app.use(express.static(path.join(__dirname, '..', '..', 'web', 'build')))
export default app

View File

@@ -16,7 +16,9 @@ const router = express.Router()
const fileUploadController = new FileUploadController()
router.get('/', async (_, res) => {
res.sendFile(path.join(__dirname, '..', '..', 'web', 'build', 'index.html'))
res.sendFile(
path.join(__dirname, '..', '..', '..', 'web', 'build', 'index.html')
)
})
router.post('/deploy', async (req, res) => {

14
api/tsconfig.json Normal file
View File

@@ -0,0 +1,14 @@
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"rootDir": "./",
"outDir": "./build",
"esModuleInterop": true,
"strict": true,
"resolveJsonModule": true
},
"ts-node": {
"files": true
}
}