feat(lander): implement placeholder keys
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
4d9dfff27e
commit
3952496378
7 changed files with 123 additions and 14 deletions
|
|
@ -27,6 +27,7 @@ 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_placeholder = 3,
|
||||
} lander_entry_type;
|
||||
|
||||
void *lander_gctx_init();
|
||||
|
|
@ -61,6 +62,16 @@ lnm_http_step_err lander_post_file(lnm_http_conn *conn);
|
|||
|
||||
lnm_http_step_err lander_post_file_secure(lnm_http_conn *conn);
|
||||
|
||||
lnm_http_step_err lander_post_placeholder(lnm_http_conn *conn);
|
||||
|
||||
lnm_http_step_err lander_post_placeholder_secure(lnm_http_conn *conn);
|
||||
|
||||
/**
|
||||
* Step that authenticates requests. If the key of the request is for a
|
||||
* placeholder entry, authentication is granted without an api key.
|
||||
*/
|
||||
lnm_http_step_err lander_auth_or_placeholder(lnm_http_conn *conn);
|
||||
|
||||
/**
|
||||
* Store the requested header as an attribute, if it's present.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue