imgurxp/src/404.cpp

11 lines
282 B
C++
Raw Normal View History

2022-01-17 08:52:25 +00:00
#include <kore/kore.h>
#include <kore/http.h>
#include "assets.h"
#include "404.hpp"
int not_found(struct http_request* req) {
2022-01-17 09:52:13 +00:00
http_response_header(req, "Content-Type", "text/html");
2022-01-17 08:52:25 +00:00
http_response(req, 404, asset_404_html, asset_len_404_html);
return KORE_RESULT_OK;
}