aboutsummaryrefslogtreecommitdiff
path: root/internal/route/repo/http.go
Commit message (Collapse)AuthorAge
* chore: consistently use `errors.Cause` for identifying error types (#7264)Joe Chen2022-11-27
|
* refactor(db): migrate perms methods off `user.go` (#7207)Joe Chen2022-10-23
|
* auth: enable authentication by token from password (#7198)Yang Liu2022-10-22
| | | Co-authored-by: Joe Chen <jc@unknwon.io>
* db: use `context` and go-mockgen for `ReposStore` (#7046)Joe Chen2022-06-11
|
* db: use `context` and go-mockgen for `UsersStore` (#7042)Joe Chen2022-06-11
|
* db: use `context` and go-mockgen for `PermsStore` (#7033)Joe Chen2022-06-08
|
* db: rename `AccessTokensStore.Save` to `Touch` (#7029)Joe Chen2022-06-08
|
* http: clean request path from Git endpoints (#7022)Joe Chen2022-06-07
|
* db: use `context` and go-mockgen for `AccessTokensStore` (#7013)Joe Chen2022-06-06
|
* access_token: encrypt access token with SHA256 (#7008)E99p1ant2022-06-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * access_token: encrypt access token with SHA256 * revert list access token * fix lint * generate schemadoc * add database migrations * fix tests * fix tests * add test case for access token golden * fix test in postgres * `Sha256` -> `SHA256` * Use GORM for migration * task generate-schemadoc * Use unique * change migration name * allow read * task generate-schemadoc * add changelog * fix lint error * update changelog * remove Debug * add comments Co-authored-by: Joe Chen <jc@unknwon.io>
* http: fix non-sense `NotFound` call (#7003)Joe Chen2022-06-04
|
* autofix: fix check for empty string (#6804)deepsource-autofix[bot]2022-03-06
| | | Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
* db: migrate access table to use GORM (#6371)ᴜɴᴋɴᴡᴏɴ2020-10-06
|
* auth: decouple types and functions from db (#6320)ᴜɴᴋɴᴡᴏɴ2020-09-20
|
* access_token: migrate to GORM and add tests (#6086)ᴜɴᴋɴᴡᴏɴ2020-04-11
| | | | | | | | | * access_token: migrate to GORM * Add tests * Fix tests * Fix test clock
* route: no session for routes without UI (#6066)ᴜɴᴋɴᴡᴏɴ2020-04-05
| | | Not all routes need session, register session and CSRF middleware as global is a waste of resource, and creating a lot one-time off yet never used session records.
* lfs: implement HTTP routes (#6035)ᴜɴᴋɴᴡᴏɴ2020-04-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Bootstrap with GORM * Fix lint error * Set conn max lifetime to one minute * Fallback to use gorm v1 * Define HTTP routes * Finish authentication * Save token updated * Add docstring * Finish authorization * serveBatch rundown * Define types in lfsutil * Finish Batch * authutil * Finish basic * Formalize response error * Fix lint errors * authutil: add tests * dbutil: add tests * lfsutil: add tests * strutil: add tests * Formalize 401 response
* workflows: enable golangci-lint (#5998)ᴜɴᴋɴᴡᴏɴ2020-03-21
| | | | | | | | | | | | | * Create golint.yml * Update golint.yml * Update golint.yml * Fix errcheck * Fix gosimple * Fix staticcheck
* refactor: unify error handling in routing layerᴜɴᴋɴᴡᴏɴ2020-03-16
|
* conf: overhaul auth and user settings (#5942)ᴜɴᴋɴᴡᴏɴ2020-02-27
| | | | | | * conf: overhaul auth and user settings * ci: update travis Go versions
* conf: overhaul repository settings (#5932)ᴜɴᴋɴᴡᴏɴ2020-02-22
|
* conf: overhaul server settings (#5928)ᴜɴᴋɴᴡᴏɴ2020-02-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * conf: rename package * Requires Go 1.12 * Fix lint * Fix lint * Overhaul * db: fix tests * Save my work * Fix tests * Server.UnixSocketPermission * Server.LocalRootURL * SSH settings * Server.OfflineMode * Save my work * App.Version * Remove [server] STATIC_ROOT_PATH * Server.LandingURL
* log: migrate to unknwon.dev/clog/v2 (#5927)ᴜɴᴋɴᴡᴏɴ2020-02-20
| | | | | | * Add unknwon.dev/clog/v2 * Update all places
* all: use lazyregexp (#5911)ᴜɴᴋɴᴡᴏɴ2020-01-29
| | | | | | * Use lazyregexp * all: fix imports and usages
* internal: move packages under this directory (#5836)Unknwon2019-10-24
* Rename pkg -> internal * Rename routes -> route * Move route -> internal/route * Rename models -> db * Move db -> internal/db * Fix route2 -> route * Move cmd -> internal/cmd * Bump version