feat(ltm): PoC paste pages

This commit is contained in:
Jef Roosens 2023-12-17 17:29:20 +01:00
parent 11421dca74
commit 8c2a7a640d
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
6 changed files with 60 additions and 9 deletions

View file

@ -4,16 +4,21 @@
#include "lnm/common.h"
#include "lnm/http/loop.h"
#include "lsm/store.h"
#include "ltm/template.h"
extern const char lander_key_charset[];
typedef struct lander_gctx {
const char *data_dir;
lsm_store *store;
struct {
ltm_template *paste;
} templates;
} lander_gctx;
typedef struct lander_ctx {
lsm_entry_handle *entry;
ltm_instance *instance;
} lander_ctx;
typedef enum lander_attr_type : uint8_t {