mirror of
https://github.com/sasjs/server.git
synced 2026-01-05 05:40:06 +00:00
chore: restructure repo into sub folders
This commit is contained in:
0
package-lock.json → api/package-lock.json
generated
0
package-lock.json → api/package-lock.json
generated
@@ -5,6 +5,6 @@ const app = express()
|
|||||||
|
|
||||||
app.use(express.json({ limit: '50mb' }))
|
app.use(express.json({ limit: '50mb' }))
|
||||||
app.use('/', indexRouter)
|
app.use('/', indexRouter)
|
||||||
app.use(express.static(path.join(__dirname, '..', 'web', 'build')))
|
app.use(express.static(path.join(__dirname, '..', '..', 'web', 'build')))
|
||||||
|
|
||||||
export default app
|
export default app
|
||||||
@@ -16,7 +16,9 @@ const router = express.Router()
|
|||||||
const fileUploadController = new FileUploadController()
|
const fileUploadController = new FileUploadController()
|
||||||
|
|
||||||
router.get('/', async (_, res) => {
|
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) => {
|
router.post('/deploy', async (req, res) => {
|
||||||
14
api/tsconfig.json
Normal file
14
api/tsconfig.json
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "es5",
|
||||||
|
"module": "commonjs",
|
||||||
|
"rootDir": "./",
|
||||||
|
"outDir": "./build",
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"strict": true,
|
||||||
|
"resolveJsonModule": true
|
||||||
|
},
|
||||||
|
"ts-node": {
|
||||||
|
"files": true
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user