move login and add logout

This commit is contained in:
Thomas Ruoff
2021-06-16 23:29:12 +02:00
parent b6a1e45fcf
commit 9024310ce0
7 changed files with 44 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
import { Bill } from '../../../../../db/bill'
import { createBill, patchBill } from '../../../../../db/index'
import withSession, { isAdminSession } from '../../../../../lib/session'
import { Bill } from '../../../../db/bill'
import { createBill, patchBill } from '../../../../db/index'
import withSession, { isAdminSession } from '../../../../lib/session'
export default withSession(async function billHandler(req, res): Promise<void> {
if (!isAdminSession(req)) {