Method: Moonrope::DocServer.path_regex

Defined in:
lib/moonrope/doc_server.rb

.path_regexObject

Set the default path regex which should be matched for requests for API docmentation. By default, this is /api/docs/.



17
18
19
# File 'lib/moonrope/doc_server.rb', line 17

def path_regex
  @path_regex ||= /\A\/#{Moonrope::Request.path_prefix}docs\/([\w\.]+)\/?([\w\/\-\.]+)?/
end