Register a handler for a route path.

Route paths are matched in registration order.

Property definitions

popcorn $ Router :: use
	# Register a `handler` for a route `path`.
	#
	# Route paths are matched in registration order.
	fun use(path: String, handler: Handler) do
		var route = build_route(handler, path)
		handlers[route] = handler
	end
lib/popcorn/pop_handlers.nit:322,2--328,4