shiori/internal/webserver
Felipe Martin 6f19c12c95
Start working on new REST API. Refactor logic in domains. (#497)
* added 404 template

* added auth domain

* added embed file for frontend

* added base config and dependencies

* added basic new http server

* added separated server command

* updated go modules

* removed modd file

* Added shortcut to send internal server error response

* Added JWT support to Auth Domain

* Added JWT support to API

* docs: added comments to response struct

* naming

* inline returns

* updated dependencies

* production logger

* bookmarks endpoint

* reverted old views api path

* frontend for api v1

* proper 404 error (not working atm)

* use response

* removed 404 html

* server error handler

* login and basic auth

* adjusted session duration

* properly retrieve tags

* properly delete bookmark

* cleanup

* archiver domain

* debug routes

* bookmark routes

* expiration by parameter

* move to logrus

* logout

* frontend cache

* updated dependencies

* http: migrated to gin

* linted

* Added version command

* unit tests, docs

* response test utils and tests

* remove logout handler

* auth

* createtag

* improved http test utilities

* assert message equals

* Remove 1.19 from test matrix

* moved api to v1 folder

* docs: contribute docs

* updated makefile

* updated usage docs

* warn in server command

* updaed docs with shiori version command

* Updated documentation

* deps: update
2023-07-17 14:30:18 +01:00
..
assets-dev.go
assets-prod.go replace assets generation with embed (#423) 2022-05-26 19:36:23 +02:00
handler-api-ext.go Start working on new REST API. Refactor logic in domains. (#497) 2023-07-17 14:30:18 +01:00
handler-api.go fix: prevent bookmark overwrite on download (#636) 2023-07-09 08:33:56 +02:00
handler-ui.go Initial Ebook Support (#623) 2023-07-09 08:29:32 +02:00
handler.go fix(api-ext): use same save logic as the api (#518) 2022-10-15 14:16:12 +02:00
server.go Initial Ebook Support (#623) 2023-07-09 08:29:32 +02:00
utils.go refactor:pass ctx to db layer, return err instead of recover panic (#450) 2022-09-30 12:19:36 +02:00
utils_ip.go fix(log): record user real ip from headers (#603) 2023-06-11 21:25:23 +02:00
utils_ip_test.go fix(log): record user real ip from headers (#603) 2023-06-11 21:25:23 +02:00