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
remote
servers
reset
route.ts
feat: admin & client dashboard, initial support of managment and client views
ea28d9f
5 months ago
11 lines · 393 B
1
import
type
{
NextRequest
}
from
"
next/server
"
;
2
import
{
resetNodeServers
}
3
import
{
authenticateWings
}
4
5
export
async
function
POST
6
const
auth
=
7
if
(
!
auth
.
ok
8
9
await
resetNodeServers
(
auth
10
return
new
Response
11
}
from
"
@struxa/api/services/wings-servers
"
;
from
"
@/lib/wings-auth
"
;
(
req
:
NextRequest
)
{
await
authenticateWings
(
req
)
;
)
return
auth
.
response
;
.
node
.
id
)
;
(
null
,
{
status
:
204
}
)
;