comparison page-search.c @ 82:0a29424e4486

pasterd: use constant filenames
author David Demelier <markand@malikania.fr>
date Fri, 17 Mar 2023 19:45:00 +0100
parents 1ffe2f5a8500
children 94dcca86e5cc
comparison
equal deleted inserted replaced
81:1ffe2f5a8500 82:0a29424e4486
26 #include "page.h" 26 #include "page.h"
27 #include "paste.h" 27 #include "paste.h"
28 #include "util.h" 28 #include "util.h"
29 29
30 #define TITLE "paster -- search" 30 #define TITLE "paster -- search"
31 #define HTML "search.html"
31 #define LIMIT 16 32 #define LIMIT 16
32 33
33 enum { 34 enum {
34 KEYWORD_LANGUAGES 35 KEYWORD_LANGUAGES
35 }; 36 };
79 .key = keywords, 80 .key = keywords,
80 .keysz = NELEM(keywords) 81 .keysz = NELEM(keywords)
81 } 82 }
82 }; 83 };
83 84
84 page(req, KHTTP_200, TITLE, "search.html", &self.template); 85 page(req, KHTTP_200, TITLE, HTML, &self.template);
85 } 86 }
86 87
87 static void 88 static void
88 post(struct kreq *req) 89 post(struct kreq *req)
89 { 90 {