Resolve API route with multiple subdirs