Skip to content

Commit

Permalink
Update app.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdi-01 authored Jun 20, 2024
1 parent 643c8a0 commit 8152170
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/api/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ export default class App {
private routes(): void {
const sampleRouter = new SampleRouter();

this.app.get('/', (req: Request, res: Response) => {
res.send(`Hello, Purwadhika Student !`);
this.app.get('/api', (req: Request, res: Response) => {
res.send(`Hello, Purwadhika Student API!`);
});

this.app.use('/samples', sampleRouter.getRouter());
this.app.use('/api/samples', sampleRouter.getRouter());
}

public start(): void {
Expand Down

0 comments on commit 8152170

Please sign in to comment.