Commit Graph

23 Commits

Author SHA1 Message Date
51283ffa14 change some 2026-08-10 17:32:58 +05:00
18012fcec0 Serve Swagger spec per request so it works behind a proxy prefix.
The baked-in host and basePath pointed "Try it out" at the app's own listen
address, so requests from the browser never reached the server. doc.json is
now built from the incoming request, using X-Forwarded-Prefix to restore the
path prefix nginx strips before proxying.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-08 11:42:49 +05:00
ba53b5b5c2 Update Swagger host to port 5005 and harden Gin trusted proxies.
Also add shared nginx config for test.webulgam.com with online-backend path.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-07 18:47:30 +05:00
30bcfefc1e Merge activity_logs into init migration and ignore myapp binary.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-07 17:33:34 +05:00
3636e1ca53 active log add 2026-07-16 17:53:45 +05:00
585ba63bc2 changed arhitecture 2026-07-15 18:08:19 +05:00
7e3a5cebcc add cards folder 2026-07-13 18:47:35 +05:00
6705c4ce91 change users table 2026-07-13 12:11:35 +05:00
c29c72fd92 change db 2026-07-09 13:13:18 +05:00
d6555e1133 add minio and file upload 2026-07-08 18:42:08 +05:00
be3dc28e68 created loan-orders and created table 2026-07-08 17:07:51 +05:00
77bc4025d3 Add branch_user table and branch-user assignment endpoints
Introduces a branch_user join table linking branches to users, plus
create/delete API endpoints under the auth module for managing branch
assignments. The create response includes the branch's localized name
via a join. Regenerated swagger docs to include the new endpoints.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-08 15:02:05 +05:00
1337175e5d Stop tracking config.yaml and document config via example file
config.yaml carried real secrets (jwt_key, DB password) despite already
being listed in .gitignore. Untrack it, add config.example.yaml with
placeholder values, and point the README setup steps at the example file.
2026-07-08 12:53:02 +05:00
4350915b30 Add permission and user admin modules with updated user schema
Split user name into first_name/last_name/name and rename phone_number to
phone; add permissions table and register the new permission/user handlers.
2026-07-08 12:48:05 +05:00
4d1942d7fe add roles 2026-07-07 18:06:50 +05:00
41471694d5 change table column name 2026-07-07 15:16:40 +05:00
ef56625321 Align loan type and required document schema with updated column names.
Rename loan_required_documents to loan_order_required_docs, simplify document fields to name/value, and map loan_types columns to name, maturity, notes, and active.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 22:48:19 +05:00
08be61cbcd changed column name 2026-07-06 19:13:54 +05:00
3ba5597a51 Restore bank_db credentials and ignore local database artifacts.
Revert example database settings in Docker and docs, fix Makefile migrate target, and gitignore local bank_db dumps and schema files.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 14:17:48 +05:00
164c195fdf Use example database credentials in config and Docker setup.
Replace bank_db/bank_admin with example_db/example_user in config.yaml, docker-compose, Makefile, and README so pushed templates do not expose real credentials.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 14:14:10 +05:00
82e1aad016 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>
2026-07-06 14:09:45 +05:00
0c717101da settings section 2026-07-04 18:34:30 +05:00
GuwandykA
bbe5d219ad Initial commit 2026-07-04 11:43:19 +05:00