UNPKG
@thunderstorefront/api-mock
Version:
latest (0.3.1)
0.3.1
0.3.0
0.2.2
0.2.1
0.2.0
0.1.0
0.0.4
0.0.3
0.0.2
0.0.1
Create Nuxt extendable layer with this GitHub template.
@thunderstorefront/api-mock
/
server
/
api
/
account
/
login.post.ts
6 lines
(4 loc)
•
153 B
text/typescript
View Raw
1
2
3
4
5
6
import { CUSTOMER_ID }
from
'../../mocks/const'
;
export
default
defineEventHandler
(
(
event
):
{ token:
string
} => {
return
{ token: CUSTOMER_ID }; });