Skip to content

Commit 5d9315d

Browse files
committed
fix endpoints
1 parent 2a5a5de commit 5d9315d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ app.all('/', (req, res) => {
3737
res.status(200).json(validEndpoints);
3838
});
3939

40-
app.get('/api/fetch/:item', (req: Request, res: Response) => {
40+
app.get('/fetch/:item', (req: Request, res: Response) => {
4141
if (req.params.item === 'passwords') {
4242
return passwordsGet(req, res);
4343
} else if (req.params.item === 'notes') {
@@ -50,7 +50,7 @@ app.get('/api/fetch/:item', (req: Request, res: Response) => {
5050
}
5151
});
5252

53-
app.post('/api/create/:item', (req: Request, res: Response) => {
53+
app.post('/create/:item', (req: Request, res: Response) => {
5454
if (req.params.item === 'passwords') {
5555
return passwordsCreate(req, res);
5656
} else if (req.params.item === 'notes') {
@@ -63,7 +63,7 @@ app.post('/api/create/:item', (req: Request, res: Response) => {
6363
}
6464
});
6565

66-
app.post('/api/auth/:item', (req: Request, res: Response) => {
66+
app.post('/auth/:item', (req: Request, res: Response) => {
6767
if (req.params.item === 'register') {
6868
return register(req, res);
6969
}

0 commit comments

Comments
 (0)