Serve /public static files and grant bank_admin table access.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-05 14:28:00 +05:00
parent 231e1dbae9
commit a3c87d231b
4 changed files with 278 additions and 2 deletions

View File

@@ -79,6 +79,7 @@ func (h *handler) login(c *gin.Context) {
res, err := h.repository.Login(context.TODO(), loginReq)
if err != nil {
fmt.Println("err in repository.Login", err)
c.JSON(http.StatusBadRequest, appresult.ErrInternalServer)
return
}
@@ -94,6 +95,7 @@ func (h *handler) login(c *gin.Context) {
newTokenPair, err := utils.GenerateTokenPair(res.Id)
if err != nil {
fmt.Println("err in GenerateTokenPair", err)
c.JSON(http.StatusBadRequest, appresult.ErrNotAcceptable)
return
}