Commit Graph
14 Commits
Author SHA1 Message Date
sphericalkat a0642019c2 config: add an option to set pool size manually
Signed-off-by: SphericalKat <amolele@gmail.com>
2020-11-23 00:29:39 +05:30
sphericalkat 1a5cb0d718 db: set max pool size to 15
Signed-off-by: SphericalKat <amolele@gmail.com>
2020-11-22 20:20:21 +05:30
sphericalkat 97f66956ba cookies: set secure
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-26 12:37:41 +05:30
sphericalkat d8abb1ed58 cookies: change domain to .katb.in and set SameSite to lax
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-26 11:10:10 +05:30
sphericalkat 9e7fc110ea users: set a less restrictive domain on the cookie
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-25 09:54:19 +05:30
sphericalkat 51591530d0 routes: use rocket_cors crate to handle CORS
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-08-05 23:07:59 +05:30
sphericalkat 3d90c6f9bf cargo: bump dependencies
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-07-10 11:12:10 +05:30
sphericalkat 62c5d88048 utils: migrate to jirachi for generating unique keys
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-07-05 22:29:24 +05:30
sphericalkat d1625ce721 users: Add routes and methods to activate user
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-07-01 23:53:15 +05:30
sphericalkat 62df3f239a cargo fmt
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-06-26 16:44:07 +05:30
supercmmetry de741f451e refactor: Remove unused code
- DbConn moved to /src/api/guards/db.rs
- Removed redundant imports in /src/api/routes

Signed-off-by: supercmmetry <vishaals2000@gmail.com>
2020-06-26 08:14:19 +05:30
sphericalkat 0e5abac774 [wip] paste: Add route to create pastes
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-06-25 18:12:36 +05:30
supercmmetry 2f904690b5 utils: Implement psql db pool state
- Implement a PSQL DB Pool which is managed as a Rocket State

Signed-off-by: supercmmetry <vishaals2000@gmail.com>
2020-06-24 13:58:53 +05:30
supercmmetry 74aa1e3852 utils: Implement error struct
- Implement Responder trait for Error
- Implement Responder trait for Success

Signed-off-by: supercmmetry <vishaals2000@gmail.com>
2020-06-24 13:55:28 +05:30