Ghost
New
struxadotcloud
/
struxa
public
Star
0
Fork
0
Code
Issues
0
Pull requests
0
development
1
branch
Go to file
t
Code
struxa
apps
web
src
app
api
auth
[...all]
route.ts
feat: extended instance settings, social auth, 2FA improvements, encryption
0d30aab
5 months ago
12 lines · 333 B
1
import
{
getAuth
}
from
"
@struxa/auth
"
;
2
import
{
toNextJsHandler
}
3
4
export
async
function
GET
5
const
auth
=
6
return
toNextJsHandler
(
auth
7
}
8
9
export
async
function
POST
10
const
auth
=
11
return
toNextJsHandler
(
auth
12
}
from
"
better-auth/next-js
"
;
(
req
:
Request
)
{
await
getAuth
()
;
)
.
GET
(
req
)
;
(
req
:
Request
)
{
await
getAuth
()
;
)
.
POST
(
req
)
;