gotosocial/internal/router
Terin Stock f9b351438b
[feature] allow absolute path to templates (#507)
Only attempt to join the `WebTemplateBaseDir` with the current working
directory if the user has not configured an absolute path to the
template directory.

This changeset also makes a similar change to the testrig, allowing
tests to configure an alternative location for the templates directory.

Fixes #411

Signed-off-by: Terin Stock <terinjokes@gmail.com>
2022-04-29 11:00:25 +02:00
..
attach.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
cors.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
gzip.go [feature] Gin enable gzip encoding (#405) 2022-02-19 12:12:41 +01:00
logger.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
router.go Add support for running profiling when debug build-tags provided (#491) 2022-04-28 13:32:53 +01:00
session_test.go [bugfix] Convert IDNs to punycode before using as session name (#458) 2022-04-16 13:09:42 +02:00
session.go [bugfix] Convert IDNs to punycode before using as session name (#458) 2022-04-16 13:09:42 +02:00
template.go [feature] allow absolute path to templates (#507) 2022-04-29 11:00:25 +02:00