Skip to content

Commit

Permalink
Reformat TS files
Browse files Browse the repository at this point in the history
  • Loading branch information
nesimtunc committed Feb 12, 2022
1 parent 2f0481f commit 7328b10
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"semi": true,
"singleQuote": true,
"trailingComma": "all"
}
6 changes: 3 additions & 3 deletions src/app.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PrismaClient } from '@prisma/client'
import { PrismaClient } from '@prisma/client';
import express, { Application, Response } from "express";

const PORT = process.env.PORT || 3000;
Expand All @@ -10,9 +10,9 @@ app.get("/", (_, res: Response) => {
res.status(200).send("Hello Periodum API!");
});

app.get('/elements', async (_, res: Response)=> {
app.get('/elements', async (_, res: Response) => {
const elements = await prisma.elements.findMany();
res.json({data: elements});
res.json({ data: elements });
});

app.listen(PORT, () => {
Expand Down

0 comments on commit 7328b10

Please sign in to comment.