21 lines
446 B
Haskell
21 lines
446 B
Haskell
|
|
module Web.Routes where
|
||
|
|
|
||
|
|
import IHP.RouterPrelude
|
||
|
|
import Generated.Types
|
||
|
|
import Web.Types
|
||
|
|
|
||
|
|
-- Hubs
|
||
|
|
instance AutoRoute HubsController
|
||
|
|
|
||
|
|
-- Widgets
|
||
|
|
instance AutoRoute WidgetsController
|
||
|
|
|
||
|
|
-- Interaction Events (POST /widgets/:widgetId/events)
|
||
|
|
instance AutoRoute InteractionEventsController
|
||
|
|
|
||
|
|
-- Annotations (scoped to widget: /widgets/:widgetId/annotations/)
|
||
|
|
instance AutoRoute AnnotationsController
|
||
|
|
|
||
|
|
-- Sessions
|
||
|
|
instance AutoRoute SessionsController
|