ecs_rest_server_init

Function ecs_rest_server_init 

Source
pub unsafe extern "C" fn ecs_rest_server_init(
    world: *mut ecs_world_t,
    desc: *const ecs_http_server_desc_t,
) -> *mut ecs_http_server_t
Expand description

Create HTTP server for REST API. This allows for the creation of a REST server that can be managed by the application without using Flecs systems.

@param world The world. @param desc The HTTP server descriptor. @return The HTTP server, or NULL if failed.