Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(route): add prefix /api for routes #19

Merged
merged 1 commit into from
Mar 21, 2023

Conversation

ayocodingit
Copy link
Collaborator

@ayocodingit ayocodingit commented Mar 21, 2023

Overview

  • fix(route): add prefix /api for routes

Evidence

  • title: fix(route): add prefix API for routes
  • project: Digitalisasi Al Jabbar
  • participants: @ayocodingit @rhmnmbr

@ayocodingit ayocodingit self-assigned this Mar 21, 2023
@ayocodingit ayocodingit merged commit 5a55813 into main Mar 21, 2023
@ayocodingit ayocodingit deleted the fix(route)-add-prefix-api branch March 21, 2023 04:14
Comment on lines 21 to 25
const handler = new Handler(usecase, this.logger)
this.http.app.get('/v1/banners', handler.Banner())
this.http.app.get('/v1/activities', handler.Activity())
this.http.app.get('/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())
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the route name is used the prefix api. Usually, the api prefix is ​​in the api domain.
Ex: api.aljabar.jabarprov.go.id

this comment is for avoiding redundant prefix naming with api.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

continue discussion to chat telegram yes

@rachadiannovansyah
Copy link
Member

it's already merged 1 minutes ago 😿

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants