You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers
zeripath de3216ee55
Use common sessioner for API and web routes (#18114)
* Use common sessioner for API and web routes

Since the regenerate session ID PR some users of the memory session provider have been
reporting difficulties with getting API results.

I am uncertain as to why this is happening - but I think that the sessioner being
created twice may be a potential cause for this. Therefore this PR attempts to move
this out to a common sessioner as it is in 1.16.

Fix #18070

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Update routers/init.go
3 years ago
..
api/v1 Use common sessioner for API and web routes (#18114) 3 years ago
common Instead of using routerCtx just escape the url before routing (#18086) (#18098) 3 years ago
install Run Migrate in Install rather than just SyncTables (#17475) (#17486) 3 years ago
private Fix golangci-lint warnings (#17598 et al) (#17668) 3 years ago
utils just add some unit tests (#16291) 4 years ago
web Use common sessioner for API and web routes (#18114) 3 years ago
init.go Use common sessioner for API and web routes (#18114) 3 years ago