is there a way to type the result of a get request handler depending on the path and parameters of $fetch?