added current user api
This commit is contained in:
parent
300da91015
commit
956ede5619
2 changed files with 15 additions and 7 deletions
|
|
@ -23,13 +23,13 @@ app.use(
|
|||
app.use(passport.initialize());
|
||||
app.use(passport.session());
|
||||
|
||||
// app.use(
|
||||
// cors({
|
||||
// origin: process.env.ACCEPTED_ORIGINS.split(","),
|
||||
// methods: "GET",
|
||||
// credentials: true,
|
||||
// })
|
||||
// )
|
||||
app.use(
|
||||
cors({
|
||||
origin: process.env.ACCEPTED_ORIGINS.split(","),
|
||||
methods: "GET",
|
||||
credentials: true,
|
||||
})
|
||||
)
|
||||
|
||||
app.use("/auth", authRoute);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue