URLS

Plugin urls.

class smarter.apps.llmtool.api.v1.urls.RequestRouter(**kwargs)[source]

Bases: View

Http method-based request router.

dispatch(request, *args, **kwargs)[source]

Send a POST to PluginView, which creates a plugin, and any other method to PluginListView.

Parameters:
  • request (HttpRequest) – The request.

  • args – Positional arguments from the url.

  • kwargs – Keyword arguments from the url.

Returns:

The response of the view that handled the request.