Curiosity
Two-column slide with code snippet and CLI command on a light background

Routing and deploy

Registering routes:

Routes are registered at app startup. The workspace mounts the first matching route when a URL is visited.

// App.Routes.cs (partial class)
public static partial class App
{
    static App()
    {
        // Register routes at startup
        Router.Register("/tickets/{id}", id => new TicketView(id));
        Router.Register("/tickets",          () => new TicketListView());
        Router.Register("/",                 () => new HomeView());
    }
}

Each route maps a URL pattern to a component factory. Path parameters are passed as strings.


Deploy to the workspace:

# Build release
dotnet build -c Release

# Upload bundle
curiosity-cli upload-front-end \
  --server https://your-workspace.example.com \
  --token  $WORKSPACE_TOKEN \
  --path   bin/Release/netstandard2.0/h5/

The workspace serves the new bundle immediately after upload. No restart required.


Going further:

Tesserae component library Full component reference
Custom front-end docs Styling, state management, node renderers
H5 compiler Language features and interoperability