Skip to content

Commit

Permalink
Merge pull request #3 from masdefry/defryan_auth
Browse files Browse the repository at this point in the history
feat: auth user
  • Loading branch information
masdefry authored Jul 16, 2024
2 parents 8152170 + b2b317c commit 27921fd
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 9 deletions.
3 changes: 3 additions & 0 deletions apps/api/src/controllers/auth.controller.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const authUser = () => {

}
3 changes: 3 additions & 0 deletions apps/api/src/controllers/sample.controller.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Request, Response } from 'express';
import prisma from '@/prisma';


export class SampleController {
async getSampleData(req: Request, res: Response) {
const sampleData = await prisma.sample.findMany();
Expand Down Expand Up @@ -32,3 +33,5 @@ export class SampleController {
return res.status(201).send(newSampleData);
}
}

console.log('Hello')
78 changes: 69 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,9 @@
"hooks": {
"pre-commit": "npx lint-staged"
}
},
"dependencies": {
"@types/axios": "^0.14.0",
"axios": "^1.7.2"
}
}

0 comments on commit 27921fd

Please sign in to comment.