feat(lander): introduce file entry type
This commit is contained in:
parent
3d48ee8019
commit
7fac278ead
5 changed files with 93 additions and 33 deletions
|
|
@ -4,7 +4,7 @@
|
|||
#include "http_loop.h"
|
||||
#include "lsm/store.h"
|
||||
|
||||
extern http_route lander_routes[5];
|
||||
extern http_route lander_routes[6];
|
||||
|
||||
typedef struct lander_gctx {
|
||||
const char *data_dir;
|
||||
|
|
@ -27,6 +27,7 @@ typedef enum lander_attr_type : uint8_t {
|
|||
typedef enum lander_entry_type : uint8_t {
|
||||
lander_entry_type_redirect = 0,
|
||||
lander_entry_type_paste = 1,
|
||||
lander_entry_type_file = 2,
|
||||
} lander_entry_type;
|
||||
|
||||
void *lander_gctx_init();
|
||||
|
|
@ -59,4 +60,6 @@ bool lander_post_redirect_body_to_attr(event_loop_conn *conn);
|
|||
|
||||
bool lander_remove_entry(event_loop_conn *conn);
|
||||
|
||||
bool lander_post_file_lsm(event_loop_conn *conn);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue