Commit Graph
47 Commits
Author SHA1 Message Date
sphericalkat 8ffdb14a40 chore(deps): bump crate versions
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-01-28 01:04:30 +05:30
sphericalkat 5de35bd8a0 Create README.md 2021-01-20 23:51:55 +05:30
sphericalkat acf427168c chore(cargo): bump deps
Signed-off-by: SphericalKat <amolele@gmail.com>
2020-12-17 21:26:32 +05:30
sphericalkat 0e04aa2879 fix(catchers): return appropriate http status for internal server errors
Signed-off-by: SphericalKat <amolele@gmail.com>
2020-12-17 21:26:00 +05:30
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 3d2c8db5ba cargo: bump jirachi version
Signed-off-by: SphericalKat <amolele@gmail.com>
2020-11-23 00:24:04 +05:30
sphericalkat 17b34e463b chore(deps): bump cargo dependencies
Signed-off-by: SphericalKat <amolele@gmail.com>
2020-11-22 20:23:55 +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 43df413e57 cargo: bump dependencies
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-10-07 13:52:03 +05:30
sphericalkat ac2028d373 pastes: don't 404 when user does not exist
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-26 19:59:32 +05:30
sphericalkat b661b7ea8d pastes: add a route to update pastes
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-26 19:17:48 +05:30
sphericalkat e001d87f3e paste: return an extra parameter if the current user is the owner
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-26 17:04:53 +05:30
sphericalkat 28fe55b8db users: add a route to fetch the user from cookie
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-26 16:17:37 +05:30
sphericalkat beaca24246 user: add a route to fetch by ID
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-26 15:43:59 +05:30
sphericalkat 97f66956ba cookies: set secure
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-26 12:37:41 +05:30
sphericalkat 84e3def3f8 cors: allow credentials
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-26 11:41:05 +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 2aef9cb7a1 cors: add Set-Cookie to exposed headers
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-26 10:50:07 +05:30
sphericalkat 4dafd40fcf Merge pull request #2 from ATechnoHazard/bugfix/jirachi
jirachi: Bump to v0.1.8
2020-09-25 15:48:05 +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 ebe7bf4594 paste: make URL regex case insensitive
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-24 23:19:07 +05:30
sphericalkat 2a3634e5de dependencies: bump versions
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-24 22:57:43 +05:30
sphericalkat c075068649 pastes: validate URLs using regex
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-09-24 22:45:48 +05:30
sphericalkat 8ac5b3ca8b heroku: add a procfile
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-08-29 23:58:08 +05:30
sphericalkat 2c7f6d8c59 heroku: set default toolchain version
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-08-29 23:42:03 +05:30
sphericalkat 4a456aafd6 paste: change return signature of fetching paste
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-08-29 23:37:28 +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 e412014a14 cargo: Add missing fields and dev dependencies
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-07-06 02:29:30 +05:30
sphericalkat 5fa4711c48 License project under MIT
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-07-06 02:21:56 +05:30
sphericalkat b6d73b8fe5 cargo: Update dependencies
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-07-05 22:31:03 +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 2b785d3fe4 paste: Make is_url an optional parameter in JSON body
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-07-02 12:37:56 +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 328b14f986 fairings: Failed experiment with templating
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-06-28 15:31:18 +05:30
sphericalkat 3f5f052a7f api: Add a CORS fairing
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-06-26 16:52:00 +05:30
sphericalkat 62df3f239a cargo fmt
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-06-26 16:44:07 +05:30
sphericalkat 1aa0c5c278 cargo: Cheap tricks for faster binaries
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-06-26 13:35:42 +05:30
sphericalkat 2ada994764 cargo: Update dependencies
Signed-off-by: ATechnoHazard <amolele@gmail.com>
2020-06-26 13:29:59 +05:30
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
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