elm-pages-v3-beta/examples/routing/src/Api.elm

19 lines
395 B
Elm
Raw Normal View History

2021-05-07 20:51:29 +03:00
module Api exposing (routes)
import ApiRoute
import DataSource exposing (DataSource)
2021-05-07 20:51:29 +03:00
import DataSource.Http
import Html exposing (Html)
2021-05-07 20:51:29 +03:00
import Json.Encode
import OptimizedDecoder as Decode
import Route exposing (Route)
2021-05-07 20:51:29 +03:00
import Secrets
routes :
DataSource (List Route)
-> (Html Never -> String)
-> List (ApiRoute.Done ApiRoute.Response)
routes getStaticRoutes htmlToString =
2021-05-07 20:51:29 +03:00
[]