2024-03-05 10:20:36 +00:00

8 lines
181 B
JavaScript
Executable File

export default {
method: "GET",
route: "/current",
middlewares: ["withAuthentication"],
fn: async (req, res) => {
return res.json(req.currentSession)
}
}