You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to add a route to serve static files using inert,
but I'm not able to use the "h" method like in the inert examples:
I tried adding a route like this:
server.route({method: 'GET',path: '/staticpath',//or public..config: {handler: function(request,h){//here i can't get the h, just the replyreturnh.file("public/index.html");},tags: ['api','virtual'],description: 'Virtual Get user info'}}});
I keep getting the error Property 'file' does not exist on type 'ReplyWithContinue'.
Hello, thank you for the great example!
I'm trying to add a route to serve static files using inert,
but I'm not able to use the "h" method like in the inert examples:
I tried adding a route like this:
I keep getting the error
Property 'file' does not exist on type 'ReplyWithContinue'.
I found this on type definition
.file
for an example.But I don't know how to extend the ReplyWithContinue definitions
hope I explained my problem,
and sorry for my english !
The text was updated successfully, but these errors were encountered: