10 lines
258 B
TypeScript
10 lines
258 B
TypeScript
// server/api/login.ts
|
|
export default defineEventHandler(async (event) => {
|
|
// const body = await readBody(event);
|
|
// const response = await $fetch("https://api.example.com/login", {
|
|
// method: "POST",
|
|
// body,
|
|
// });
|
|
// return response;
|
|
});
|