-
Notifications
You must be signed in to change notification settings - Fork 1
/
handlers.h
38 lines (26 loc) · 1.42 KB
/
handlers.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once
#include "base.h"
#include "misc.h"
#include "http.h"
void get_user(const char *rest_path, size_t rest_path_len,
struct http_request *req, struct http_response *resp);
void get_visit(const char *rest_path, size_t rest_path_len,
struct http_request *req, struct http_response *resp);
void get_location(const char *rest_path, size_t rest_path_len,
struct http_request *req, struct http_response *resp);
void new_user(const char *rest_path, size_t rest_path_len,
struct http_request *req, struct http_response *resp);
void new_location(const char *rest_path, size_t rest_path_len,
struct http_request *req, struct http_response *resp);
void new_visit(const char *rest_path, size_t rest_path_len,
struct http_request *req, struct http_response *resp);
void update_user(const char *rest_path, size_t rest_path_len,
struct http_request *req, struct http_response *resp);
void update_location(const char *rest_path, size_t rest_path_len,
struct http_request *req, struct http_response *resp);
void update_visit(const char *rest_path, size_t rest_path_len,
struct http_request *req, struct http_response *resp);
void get_user_visits(const char *rest_path, size_t rest_path_len,
uint32_t user_id, struct http_request *req, struct http_response *resp);
void get_location_average(const char *rest_path, size_t rest_path_len,
uint32_t location_id, struct http_request *req, struct http_response *resp);