Commit Graph

424 Commits

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