]> source.dussan.org Git - gitea.git/commit
Use common sessioner for API and Web (#17027)
authorzeripath <art27@cantab.net>
Sun, 12 Sep 2021 17:35:38 +0000 (18:35 +0100)
committerGitHub <noreply@github.com>
Sun, 12 Sep 2021 17:35:38 +0000 (19:35 +0200)
commita334a95a3c7f97b2a60fc87f5ada5ce139b07ffe
tree2ed19779dd010ddd8bfda8598460ff46c0dd3865
parentaac7f68af1a145fc772c018ed98f34b1af34b637
Use common sessioner for API and Web (#17027)

* Use common sessioner for API and Web

Instead of creating separate sessioner and doubly initialising the provider just
use the same sessioner for the API and Web routes.

Signed-off-by: Andrew Thornton <art27@cantab.net>
routers/api/v1/api.go
routers/init.go
routers/web/web.go