Commit Graph
16 Commits
Author SHA1 Message Date
sphericalkat f16e906ff4 routes: pastes: Finish implementing fetching of pastes
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-06-26 00:53:39 +05:30
sphericalkat 8e44b02235 routes: pastes: Finish impl of paste creation
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-06-26 00:19:20 +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
sphericalkat 0556a03396 pastes: Add schema and some db ops
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-06-25 16:03:33 +05:30
sphericalkat e782e6640f diesel: Create migrations for users and pastes
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-06-24 22:41:01 +05:30
sphericalkat 2a1034c70f diesel: Set up initial migrations
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-06-24 21:53:48 +05:30
supercmmetry c41b036e07 diesel: embed migrations in binary
Signed-off-by: supercmmetry <vishaals2000@gmail.com>
2020-06-24 15:02:27 +05:30
supercmmetry 22cb897088 api.guards: Implement JWT request guard
Signed-off-by: supercmmetry <vishaals2000@gmail.com>
2020-06-24 14:51:08 +05:30
supercmmetry f5f4099e82 main: Manage db pool state
Signed-off-by: supercmmetry <vishaals2000@gmail.com>
2020-06-24 14:36:52 +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
supercmmetry da21eb1189 treewide: Migrate to clean-architecture
Signed-off-by: supercmmetry <vishaals2000@gmail.com>
2020-06-24 13:45:35 +05:30
supercmmetry 810af687c6 rocket: Add rocket.toml
Signed-off-by: supercmmetry <vishaals2000@gmail.com>
2020-06-23 14:52:06 +05:30
supercmmetry 032df3f178 diesel: Initial migration setup
Signed-off-by: supercmmetry <vishaals2000@gmail.com>
2020-06-23 14:48:59 +05:30
sphericalkat 53d2e70415 dependencies: Add base deps and boilerplate
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-05-27 22:45:36 +05:30
sphericalkat 0f432df67f Initial commit
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-05-27 22:08:29 +05:30