N
Nuxt3y ago
cosbgn

useMethod is not defined

This used to work perfectly until this morning when I made some updates. Do I need to import it manually?
7 Replies
danielroe
danielroe3y ago
What is useMethod?
cosbgn
cosbgnOP3y ago
from h3
/server/foo.js
'use strict';
export default defineEventHandler(async (event) => useMethod(event))
/server/foo.js
'use strict';
export default defineEventHandler(async (event) => useMethod(event))
This used to work till yesterday
cosbgn
cosbgnOP3y ago
This one
No description
cosbgn
cosbgnOP3y ago
it used to return the method, like POST, GET etc
danielroe
danielroe3y ago
Yes. That was deprecated and replaced with getMethod.
cosbgn
cosbgnOP3y ago
Ok cool. Thanks for the heads up, I couldn't find any info about it in the releases.
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server