aboutsummaryrefslogtreecommitdiffstats
path: root/\
diff options
context:
space:
mode:
authorGravatar piotrruss <mail@pruss.it> 2021-08-09 22:38:06 +0200
committerGravatar piotrruss <mail@pruss.it> 2021-08-09 22:38:06 +0200
commit0660d3f5d3028ab3084c77f14a350d74c567bbd7 (patch)
tree81d96ce220c01a9c3f6632bcbbcdd701dac5fbb2 /\
parentd43c93ab5e5abb9b2007c43422c4f4d0897e5eb4 (diff)
downloadmy_apps-0660d3f5d3028ab3084c77f14a350d74c567bbd7.tar.gz
my_apps-0660d3f5d3028ab3084c77f14a350d74c567bbd7.tar.bz2
my_apps-0660d3f5d3028ab3084c77f14a350d74c567bbd7.zip
add .next folder
Diffstat (limited to '\')
-rw-r--r--\23
1 files changed, 0 insertions, 23 deletions
diff --git a/\ b/\
deleted file mode 100644
index 59db3b6..0000000
--- a/\
+++ /dev/null
@@ -1,23 +0,0 @@
-import dbConnect from 'lib/dbConnect'
-import withSession from 'lib/withSession'
-import User from 'models/User'
-
-export default withSession(async (req, res) => {
- await dbConnect()
-
- const user = req.session.get('user')
-
- if (user) {
- const state = await User.state(user._id)
-
- res.json({
- isLoggedIn: true,
- ...user,
- ...state
- })
- } else {
- res.json({
- isLoggedIn: false,
- })
- }
-})