summaryrefslogtreecommitdiffstats
path: root/acid/acid-source
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2023-11-11 18:14:37 -0500
committerMalfurious <m@lfurio.us>2023-11-15 23:11:08 -0500
commita021cc6899c82b8af55013514dbc8c7b2a383fcd (patch)
tree75b145d75250981ef419da9678fc2f2bdc916cb1 /acid/acid-source
parent6f28e83f5d8924354a66b69241cb61a7b3162721 (diff)
downloadcychedelic-a021cc6899c82b8af55013514dbc8c7b2a383fcd.tar.gz
cychedelic-a021cc6899c82b8af55013514dbc8c7b2a383fcd.zip
dmt: Add routing / proper request handling
All requests are handled by interpreting the $PATH_INFO environment variable, which is set by the main path component of the HTTP request. All requests are assumed to be GET requests, as no other request method is supported. Elements in the $PATH_INFO are split into an array on the '/' delimiter, and we apply some sanity checks to the string to prevent potential exploits. Routes are established for all present API endpoints and valid resources / pages. Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions