Skip to content

Commit

Permalink
Merge pull request #3 from caions/fix/api-folder
Browse files Browse the repository at this point in the history
feat: add api vercel folder
  • Loading branch information
caions authored Sep 27, 2023
2 parents d00bad6 + 222fde3 commit 5422922
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions api/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import app from '../src/infra/server';

export default app;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "habit-tracker-backend",
"version": "1.0.0",
"version": "1.0.1",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions src/infra/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ app.get('/', (_, res: Response) => res.json('api version: ' + version));
app.listen(PORT, () => {
executeMigrations(), console.log(`server runing on localhost:${PORT}`);
});

export default app;

0 comments on commit 5422922

Please sign in to comment.