Added stashes with experimental row security policies. Added tag photos.

This commit is contained in:
DebaucheryLibrarian
2021-03-14 04:54:43 +01:00
parent 816529b0ca
commit e371e9725a
58 changed files with 610 additions and 172 deletions

View File

@@ -48,7 +48,6 @@ async function initServer() {
const router = Router();
const store = new KnexSessionStore({ knex });
app.use(pg);
app.set('view engine', 'ejs');
router.use('/media', express.static(config.media.path));
@@ -61,6 +60,8 @@ async function initServer() {
router.use(bodyParser.json({ strict: false }));
router.use(session({ ...config.web.session, store }));
router.use(pg);
router.use((req, res, next) => {
req.session.safeId = req.session.safeId || nanoid();