Commit graph

6 commits

Author SHA1 Message Date
mhsanaei
1c452cb40e Refactor: Use any instead of interface{} 2025-03-12 20:43:43 +01:00
Hamidreza
d503bff637 Some fixes and improvements (#1997)
* [refactor] api controller

* [fix] access log path

better to not hardcode the access log path, maybe some ppl dont want to use the default ./access.log

* [fix] set select options from logs paths in xray settings

* [update] .gitignore

* [lint] all .go files

* [update] use status code for jsonMsg and 401 to unauthorize

* [update] handle response status code via axios

* [fix] set correct value if log paths is set to 'none'

we also use the default value for the paths if its set to none

* [fix] iplimit - only warning access log if f2b is installed
2024-03-11 01:01:24 +03:30
MHSanaei
a795da1d10 fix default language in initLocalizer
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-06-16 13:01:34 +03:30
Hamidreza Ghavami
c637d8f43d add tgBot localizer 2023-05-20 19:59:04 +04:30
Hamidreza Ghavami
b7ad82e7f4 create LocalizerMiddleware func 2023-05-20 19:46:34 +04:30
Hamidreza Ghavami
a2bf6e806a Refactor i18n localizer 2023-05-20 19:41:08 +04:30