mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-02 16:09:59 -04:00
13 lines
359 B
TypeScript
13 lines
359 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import type { NextApiRequest, NextApiResponse } from 'next'
|
|
|
|
const handler = (req: NextApiRequest, res: NextApiResponse) => {
|
|
res.status(200).setHeader('Set-Cookie', ['mock-session=1; Path=/']).json({})
|
|
}
|
|
|
|
export default handler
|