N
Nuxt2y 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
danielroe2y ago
What is useMethod?
cosbgn
cosbgn2y 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
cosbgn2y ago
This one
No description
cosbgn
cosbgn2y ago
it used to return the method, like POST, GET etc
danielroe
danielroe2y ago
Yes. That was deprecated and replaced with getMethod.
cosbgn
cosbgn2y ago
Ok cool. Thanks for the heads up, I couldn't find any info about it in the releases.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server