Commit graph

279 commits

Author SHA1 Message Date
ce40448dc8 Revamp QueryString parser test 2022-11-27 00:58:56 -08:00
f7f84f0516 Add util.testing.expectDeepEqual 2022-11-27 00:21:50 -08:00
d0e08e4b04 Fix parsing for enum and boolean values 2022-11-26 23:28:00 -08:00
29a38240d9 Fix test 2022-11-26 23:14:19 -08:00
de19083cd9 Update build.zig for unit tests 2022-11-26 23:11:34 -08:00
5b0505b355 Add tests for middleware.zig 2022-11-26 22:56:16 -08:00
856619b286 Finish using middleware impl 2022-11-26 17:52:30 -08:00
9c5e46ec5a Fix middleware compilation??? 2022-11-26 17:33:46 -08:00
04a95a280b use new middleware system 2022-11-25 17:43:30 -08:00
43ddc7534b debugging changes for middleware 2022-11-25 17:43:16 -08:00
a28af9e1fe Move json and query helpers 2022-11-25 17:42:58 -08:00
039377f168 Add router helper fn 2022-11-24 03:55:47 -08:00
503ab62607 Get api source from context 2022-11-24 03:50:25 -08:00
051217cdaf Use middlewares in controller endpoint helper 2022-11-24 03:31:24 -08:00
03338da307 Update server.zig to use new handlers 2022-11-24 03:30:49 -08:00
73f7022d36 Start work on middleware api 2022-11-23 20:51:30 -08:00
f457b7a0d6 Add drive files to db 2022-11-21 03:58:54 -08:00
14c75e0659 Add build flags for sqlite/postgres support 2022-11-21 02:18:46 -08:00
3544222065 Percent encode/decode header values 2022-11-21 00:54:03 -08:00
e1c0d2942c Customize allocation strategy per endpoint 2022-11-20 15:42:34 -08:00
252c12403a Add unfollow endpoint 2022-11-19 03:33:35 -08:00
4e85c0225b Sample Cluster admin page 2022-11-19 03:13:05 -08:00
1b379513f7 ugly fucking global timeline endpoint 2022-11-18 04:07:58 -08:00
6748f065ef Move api calls to /api/v0 subpath 2022-11-18 03:43:41 -08:00
37ee6f9593 Remove redundant content-type header 2022-11-18 03:37:54 -08:00
ea837f78bd Change error name on invalid cookie 2022-11-18 03:37:42 -08:00
fdf0a84593 Fix whitespace stripping after control blocks 2022-11-18 03:32:30 -08:00
229acd6d3b Refactor template code 2022-11-18 03:24:25 -08:00
802e6402bf Token -> ControlToken 2022-11-18 02:05:13 -08:00
1340862c28 Add It param to ParseResult 2022-11-18 02:02:24 -08:00
52bb8739f8 Rename statement -> ControlBlock 2022-11-18 02:00:26 -08:00
1a7db9a834 Split expression/statements in parser 2022-11-18 01:58:13 -08:00
58adc38945 Parse whitespace stripping chars 2022-11-18 00:09:10 -08:00
22277beffc Add fields for whitespace stripping 2022-11-17 23:52:07 -08:00
c9af99d08f Add if statements to templating engine 2022-11-17 23:39:32 -08:00
5bb9742ab9 Change syntax for end_for statement 2022-11-17 23:23:02 -08:00
67ad5bfa48 Get token from cookie 2022-11-17 22:51:51 -08:00
b68dcc8fbf Add new pages 2022-11-17 20:12:49 -08:00
0e034a2064 Fix double free 2022-11-17 20:11:23 -08:00
f33b4a856f Template helpers 2022-11-17 20:11:04 -08:00
58a0dd900f Fix print call 2022-11-17 19:48:25 -08:00
fcbb1bb623 Use read instead of recv on socket 2022-11-17 19:48:07 -08:00
dac9d7c05d Support cookies 2022-11-17 19:39:24 -08:00
6accb775d4 Cleanup of networking code 2022-11-17 18:42:23 -08:00
58a81d74ec Use send() syscall instead of write() 2022-11-16 21:11:51 -08:00
432a11dbc9 Use templating system 2022-11-16 19:55:38 -08:00
305c5f8c92 Support for nested structs in sql layer 2022-11-16 02:23:14 -08:00
e4a04b869e refactor 2022-11-16 00:33:06 -08:00
c9d0090ab2 Add loop captures to capture struct 2022-11-16 00:18:14 -08:00
61493dc797 Combine Expressions and statements 2022-11-16 00:06:53 -08:00