Align schema, API routes, and auth with updated admin domain model.
Rename users table fields and loan documents table, expand branch billing credentials, switch to /api/admin prefix, refactor auth endpoints, replace PATCH with PUT for status updates, remove file upload APIs, and regenerate Swagger with ordered tags. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
0c717101da
commit
82e1aad016
22 files changed
+4248
-418
No files matched your search
@@ -28,7 +28,7 @@ import (
|
||||
"github.com/jackc/pgx/v4/pgxpool"
|
||||
)
|
||||
|
||||
const adminAPIPrefix = "/v1/admin"
|
||||
const adminAPIPrefix = "/api/admin"
|
||||
|
||||
func New(cfg *config.Config, client *pgxpool.Pool, logger *logging.Logger) *gin.Engine {
|
||||
if cfg.IsDebug != nil && !*cfg.IsDebug {
|
||||
@@ -43,7 +43,6 @@ func New(cfg *config.Config, client *pgxpool.Pool, logger *logging.Logger) *gin.
|
||||
http.MethodGet,
|
||||
http.MethodPost,
|
||||
http.MethodPut,
|
||||
http.MethodPatch,
|
||||
http.MethodDelete,
|
||||
},
|
||||
AllowHeaders: []string{
|
||||
|
||||
Reference in new issue
Block a user