Method

Cog.PrefixRoutesHandler.unmount

Declaration [src]

gboolean
cog_prefix_routes_handler_unmount (
  CogPrefixRoutesHandler* self,
  const char* path_prefix
)

Description [src]

Removes a previously configured route.

Removes a route that matches path_prefix previously configured using cog_prefix_routes_handler_mount() or cog_prefix_routes_handler_mount_path().

Parameters

path_prefix const char*
 

URI path prefix for a configured route

 Ownership is not transferred to the callee
 The string is a NUL terminated UTF-8 string

Return value

Returns: gboolean

Whether the route was found and removed.