jf-framework
Loading...
Searching...
No Matches
router.h File Reference
#include <http.h>
#include <stdint.h>
Include dependency graph for router.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Route

Macros

#define JF_FRAMEWOR_ROUTER_H
#define MAX_ROUTES   128

Typedefs

typedef void(* route_handler_t) (const HttpRequest *request, HttpResponse *response)

Functions

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

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