Current section
Files
Jump to
Current section
Files
src/route.erl
-module(route).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([new/2]).
-export_type([route/0]).
-type route() :: {route, binary(), gleam@http:method()}.
-spec new(gleam@http:method(), binary()) -> route().
new(Method, Path) ->
{route, Path, Method}.