-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae5f407
commit 2ce027b
Showing
7 changed files
with
28 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
package router | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/dipjyotimetia/event-stream/pkg/config" | ||
"github.com/dipjyotimetia/event-stream/pkg/events" | ||
"github.com/dipjyotimetia/event-stream/pkg/handler" | ||
"github.com/gofiber/fiber/v2" | ||
) | ||
|
||
// ExpenseRouter is the Router for GoFiber App | ||
func ExpenseRouter(app fiber.Router, client *events.KafkaClient, cfg *config.Config) { | ||
app.Post("/expense", handler.ExpenseHandler(client, cfg)) | ||
func ExpenseRouter(app fiber.Router,ctx context.Context, client *events.KafkaClient, cfg *config.Config) { | ||
app.Post("/expense", handler.ExpenseHandler(ctx,client, cfg)) | ||
} |