-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imported routes in index.ts and changed package.json script
- Loading branch information
Showing
3 changed files
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
const express = require("express"); | ||
Check failure on line 1 in backend/index.ts GitHub Actions / Backend lint and style check
Check failure on line 1 in backend/index.ts GitHub Actions / Backend lint and style check
|
||
const fileRoutes = require('./src/routes/fileRoutes.ts') | ||
Check failure on line 2 in backend/index.ts GitHub Actions / Backend lint and style check
|
||
|
||
const PORT = process.env.PORT || 3001; | ||
|
||
const app = express(); | ||
Check failure on line 6 in backend/index.ts GitHub Actions / Backend lint and style check
|
||
|
||
app.use(express.json()); | ||
Check failure on line 8 in backend/index.ts GitHub Actions / Backend lint and style check
Check failure on line 8 in backend/index.ts GitHub Actions / Backend lint and style check
|
||
|
||
app.use("/file", fileRoutes); | ||
|
||
app.listen(PORT, () => { | ||
console.log(`Server listening on ${PORT}`); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters