jf-framework
Loading...
Searching...
No Matches
router.c File Reference
#include <router.h>
#include <string.h>
Include dependency graph for router.c:

Functions

uint32_t jf_RouterAdd (const char *method, const char *path, const char *router, route_handler_t handler)
void jf_CreateRouter (void)

Variables

static Route routes [128]
static uint32_t routeCount = 0
route method [sizeof(route->method) -1] = '\0'

Detailed Description

Author
Avis

Function Documentation

◆ jf_CreateRouter()

void jf_CreateRouter ( void )
Author
Victor

◆ jf_RouterAdd()

uint32_t jf_RouterAdd ( const char * method,
const char * path,
const char * router,
route_handler_t handler )
Author
Victor