Commit Graph

57 Commits

Author SHA1 Message Date
ef18e705f4 Added a new Middleware class. 2022-01-08 12:05:33 +01:00
d873312915 Moved get_server from WebRoot to WebNode. 2022-01-08 12:00:12 +01:00
f00e5c5c9e Now the root node's type inthe webserver is a WebNode instead of a WebRoot. 2022-01-08 11:58:35 +01:00
163432e147 Make WebRoot use the new error handling system. 2022-01-08 11:51:39 +01:00
fd106fc785 Reworked error handling. 2022-01-08 11:47:39 +01:00
413e9efbc8 Implement setting http status codes. 2022-01-08 11:42:57 +01:00
e0b76706d9 Implemented the new node based routing. 2022-01-08 11:27:26 +01:00
01a5e1881d Started reworking routing. 2022-01-08 10:50:07 +01:00
10d3f2fd87 Added a new WebRouterNode (skeleton), and made WebRoot inherit from it. 2022-01-08 10:06:11 +01:00
3704c031f2 Added lots of missing RCPP_OBJECT declarations. 2022-01-08 10:04:12 +01:00
a1afe210d1 Split WebApplication into WebServer and WebRoot. WebServer inherits from NodeTree, and WebRoot inherits from WebNode. Also removed some of the brynet classes. 2022-01-07 20:11:06 +01:00
7117cb3988 Added settings and database helpers to WebNode. 2022-01-07 17:16:24 +01:00
3eb128264d Also commit the .cpp file. 2022-01-07 17:03:21 +01:00
b5a477f917 Added create_default_entries() to WebNode. 2022-01-07 17:02:47 +01:00
5b7cdd3829 WebNode now inherits from Node. 2022-01-07 16:57:13 +01:00
78c5601a9b Merged Model and Controller into a new WebNode class. 2022-01-07 16:36:39 +01:00
557c2a3934 Inherit WebApplication from Object. 2021-11-21 14:40:47 +01:00
cc0ca4762a Removed stray crash cond. 2021-11-03 15:43:22 +01:00
c21a86c9d2 Initial platform setup, and added godot's crash handler (will need to be heavily reworked!). 2021-11-03 15:42:16 +01:00
0a53e84fb4 Added new helpers to the Request, and smaller fixes. 2021-11-02 12:25:04 +01:00
43b7a352a5 A bit more work on the rbac admin interface. 2021-11-02 00:18:57 +01:00
68ecd088c5 Added more helpers to Request. 2021-11-01 21:20:42 +01:00
e7d4772ef3 Added get_url_root_parent helper to Request. 2021-11-01 20:57:43 +01:00
e977de894a Now the http backends are also using String. 2021-11-01 19:11:27 +01:00
ef7b39bfb1 Added 2 url helpers to Request. 2021-11-01 00:38:26 +01:00
304a2a19c9 Added a simple new Model and Controller class. 2021-10-31 21:44:44 +01:00
8e4bb75bcb Implement redirects. 2021-10-31 02:50:06 +02:00
001c3ee717 Fix compile. 2021-10-31 02:49:54 +02:00
dbb616b9e0 Added http status code enum. 2021-10-31 02:39:54 +02:00
6aae520ed4 Added doctype declaration. 2021-10-30 23:32:06 +02:00
74389bb71c Comment out 2 prints. 2021-08-23 00:13:16 +02:00
214b268aae Now int data in the session will be saved to the database. 2021-08-22 23:53:26 +02:00
83ea2c0587 Fix warning. 2021-08-22 23:01:39 +02:00
8fa6548e44 Added a reference map to Request. Also fixed 2 warnings. 2021-08-22 22:17:32 +02:00
8318e0257a Added reference support to the session. 2021-08-22 22:03:10 +02:00
127563e6ca Implement logout. 2021-08-20 19:29:39 +02:00
711d1eed6f Added get_or_create_session helper to Request. 2021-08-05 19:34:11 +02:00
b55cb85855 implement get_parameter to Request. 2021-08-05 18:24:55 +02:00
543f1eed30 Added http method support to the request class. 2021-08-05 17:11:13 +02:00
0b8dcea37a Reword a comment. 2021-08-04 22:04:33 +02:00
2a2b3a6d60 Actually make session_setup_middleware work. 2021-08-04 21:58:25 +02:00
e62d012ec1 Added a middleware func to SessionManager that can set up request's session property. 2021-08-04 21:36:09 +02:00
8fc5eca9d4 Reset the singleton pointer in SessionManager's destructor. 2021-08-04 21:22:06 +02:00
652543ef19 Fix include guard. 2021-08-04 21:10:43 +02:00
c4dd81995e Added a session manager. 2021-08-04 21:02:34 +02:00
9e6645bad6 Added a session pointer to request. 2021-08-04 20:33:21 +02:00
2521c28a9a Added a http session class. 2021-08-04 20:32:51 +02:00
e19bd5b7ef Added a new data map property to Request for storing stuff like a session object, etc. 2021-08-04 15:44:52 +02:00
714eb02819 Added cookie support to the request. Implemented it for the drogon/trantor backend. 2021-08-04 15:36:26 +02:00
4c891a373e Fix DRequest. File support is still todo. 2021-07-06 22:06:18 +02:00