Support arguments

This commit is contained in:
Kamil Trzcinski 2022-04-06 14:09:20 +02:00
parent e8aa94e4f4
commit aad601d575

View File

@ -12,12 +12,19 @@
http_method_t http_methods[] = { http_method_t http_methods[] = {
{ "GET / ", http_index }, { "GET / ", http_index },
{ "GET /snapshot ", http_snapshot }, { "GET /snapshot ", http_snapshot },
{ "GET /snapshot?", http_snapshot },
{ "GET /stream ", http_stream }, { "GET /stream ", http_stream },
{ "GET /stream?", http_stream },
{ "GET /?action=snapshot ", http_snapshot }, { "GET /?action=snapshot ", http_snapshot },
{ "GET /?action=snapshot?", http_snapshot },
{ "GET /?action=stream ", http_stream }, { "GET /?action=stream ", http_stream },
{ "GET /?action=stream?", http_stream },
{ "GET /video ", http_video_html }, { "GET /video ", http_video_html },
{ "GET /video?", http_video_html },
{ "GET /video.h264 ", http_video }, { "GET /video.h264 ", http_video },
{ "GET /video.h264?", http_video },
{ "GET /jmuxer.min.js ", http_jmuxer_js }, { "GET /jmuxer.min.js ", http_jmuxer_js },
{ "GET /jmuxer.min.js?", http_jmuxer_js },
{ NULL, NULL } { NULL, NULL }
}; };