Search code examples
streamdartrikulo

Rikulo Stream serve specified file


How do I serve a file that I specify in Rikulo stream without doing a redirect. I was trying

new ResourceLoader('my_app').load(connect, 'alternate.html');

from the plugin package but I receive the error:

type 'String' is not a subtype of type 'Path' of 'rootDir'


Solution

  • Replace the string 'my_app' with an object path that somehow contains the string.