Skip to content

Commit

Permalink
fix(route): add prefix /api for routes
Browse files Browse the repository at this point in the history
  • Loading branch information
ayocodingit committed Mar 21, 2023
1 parent 5a55813 commit e97d62e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/internal/core/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class Core {

private loadHttp(usecase: Usecase) {
const handler = new Handler(usecase, this.logger)
this.http.app.get('api/v1/banners', handler.Banner())
this.http.app.get('api/v1/activities', handler.Activity())
this.http.app.get('api/v1/activities/:id', handler.ActivityByID())
this.http.app.get('/api/v1/banners', handler.Banner())
this.http.app.get('/api/v1/activities', handler.Activity())
this.http.app.get('/api/v1/activities/:id', handler.ActivityByID())
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/internal/media/media.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Media {

private loadHttp(usecase: Usecase) {
const handler = new Handler(usecase, this.logger)
this.http.app.get('api/v1/media/', handler.FindAll())
this.http.app.get('/api/v1/media/', handler.FindAll())
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/internal/news/news.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class News {

private loadHttp(usecase: Usecase) {
const handler = new Handler(usecase, this.logger)
this.http.app.get('api/v1/news', handler.FindAll())
this.http.app.get('/api/v1/news', handler.FindAll())
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/internal/prayerTimes/prayerTimes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class PrayerTime {

private loadHttp(usecase: Usecase) {
const handler = new Handler(usecase, this.logger)
this.http.app.get('api/v1/prayer-times/:date', handler.FindByDate())
this.http.app.get('/api/v1/prayer-times/:date', handler.FindByDate())
}
}

Expand Down

0 comments on commit e97d62e

Please sign in to comment.