View Source Routes.Processor (routes v0.2.0)

Processes routes from a module and generates the corresponding JavaScript/TypeScript files.

Summary

Functions

Processes routes from the given module and generates JavaScript/TypeScript files.

Functions

Processes routes from the given module and generates JavaScript/TypeScript files.

Returns {:ok, routes} on success or {:error, reason} on failure.

Examples

iex> Routes.Processor.process_routes(MyAppWeb.Router)
{:ok, [%{path: "/", name: "root"}, %{path: "/users", name: "users"}]}