├── .gitignore ├── .vscode └── launch.json ├── Cargo.lock ├── Cargo.toml ├── diesel.toml ├── migrations ├── .gitkeep ├── 00000000000000_diesel_initial_setup │ ├── down.sql │ └── up.sql ├── 2021-06-30-163306_create_users │ ├── down.sql │ └── up.sql ├── 2021-07-05-111448_tokens │ ├── down.sql │ └── up.sql └── 2021-07-05-113124_tokens_default_timestamp │ ├── down.sql │ └── up.sql ├── rust-toolchain └── src ├── config.rs ├── database ├── authorization │ ├── get_user.rs │ ├── mod.rs │ └── token.rs ├── mod.rs └── projects │ ├── add.rs │ ├── get.rs │ └── mod.rs ├── handlers ├── authentication │ ├── login.rs │ ├── mod.rs │ └── registration.rs ├── currencies │ └── mod.rs ├── mod.rs └── projects │ └── mod.rs ├── main.rs ├── routes ├── authentication.rs ├── currencies.rs ├── guards │ ├── authorized_user_id.rs │ ├── client_preferences.rs │ └── mod.rs ├── mod.rs ├── projects.rs ├── route_objects │ ├── currencies_response.rs │ ├── error_response.rs │ ├── login_request.rs │ ├── login_response.rs │ ├── mod.rs │ ├── new_project_request.rs │ ├── projects_list_response.rs │ └── registration_request.rs └── routes_setup.rs └── schema.rs /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | .idea 3 | .env -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/Cargo.toml -------------------------------------------------------------------------------- /diesel.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/diesel.toml -------------------------------------------------------------------------------- /migrations/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /migrations/00000000000000_diesel_initial_setup/down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/migrations/00000000000000_diesel_initial_setup/down.sql -------------------------------------------------------------------------------- /migrations/00000000000000_diesel_initial_setup/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/migrations/00000000000000_diesel_initial_setup/up.sql -------------------------------------------------------------------------------- /migrations/2021-06-30-163306_create_users/down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/migrations/2021-06-30-163306_create_users/down.sql -------------------------------------------------------------------------------- /migrations/2021-06-30-163306_create_users/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/migrations/2021-06-30-163306_create_users/up.sql -------------------------------------------------------------------------------- /migrations/2021-07-05-111448_tokens/down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/migrations/2021-07-05-111448_tokens/down.sql -------------------------------------------------------------------------------- /migrations/2021-07-05-111448_tokens/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/migrations/2021-07-05-111448_tokens/up.sql -------------------------------------------------------------------------------- /migrations/2021-07-05-113124_tokens_default_timestamp/down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/migrations/2021-07-05-113124_tokens_default_timestamp/down.sql -------------------------------------------------------------------------------- /migrations/2021-07-05-113124_tokens_default_timestamp/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/migrations/2021-07-05-113124_tokens_default_timestamp/up.sql -------------------------------------------------------------------------------- /rust-toolchain: -------------------------------------------------------------------------------- 1 | nightly -------------------------------------------------------------------------------- /src/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/config.rs -------------------------------------------------------------------------------- /src/database/authorization/get_user.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/database/authorization/get_user.rs -------------------------------------------------------------------------------- /src/database/authorization/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/database/authorization/mod.rs -------------------------------------------------------------------------------- /src/database/authorization/token.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/database/authorization/token.rs -------------------------------------------------------------------------------- /src/database/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/database/mod.rs -------------------------------------------------------------------------------- /src/database/projects/add.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/database/projects/add.rs -------------------------------------------------------------------------------- /src/database/projects/get.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/database/projects/get.rs -------------------------------------------------------------------------------- /src/database/projects/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/database/projects/mod.rs -------------------------------------------------------------------------------- /src/handlers/authentication/login.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/handlers/authentication/login.rs -------------------------------------------------------------------------------- /src/handlers/authentication/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/handlers/authentication/mod.rs -------------------------------------------------------------------------------- /src/handlers/authentication/registration.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/handlers/authentication/registration.rs -------------------------------------------------------------------------------- /src/handlers/currencies/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/handlers/currencies/mod.rs -------------------------------------------------------------------------------- /src/handlers/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/handlers/mod.rs -------------------------------------------------------------------------------- /src/handlers/projects/mod.rs: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/main.rs -------------------------------------------------------------------------------- /src/routes/authentication.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/routes/authentication.rs -------------------------------------------------------------------------------- /src/routes/currencies.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/routes/currencies.rs -------------------------------------------------------------------------------- /src/routes/guards/authorized_user_id.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/routes/guards/authorized_user_id.rs -------------------------------------------------------------------------------- /src/routes/guards/client_preferences.rs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/routes/guards/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/routes/guards/mod.rs -------------------------------------------------------------------------------- /src/routes/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/routes/mod.rs -------------------------------------------------------------------------------- /src/routes/projects.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/routes/projects.rs -------------------------------------------------------------------------------- /src/routes/route_objects/currencies_response.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/routes/route_objects/currencies_response.rs -------------------------------------------------------------------------------- /src/routes/route_objects/error_response.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/routes/route_objects/error_response.rs -------------------------------------------------------------------------------- /src/routes/route_objects/login_request.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/routes/route_objects/login_request.rs -------------------------------------------------------------------------------- /src/routes/route_objects/login_response.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/routes/route_objects/login_response.rs -------------------------------------------------------------------------------- /src/routes/route_objects/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/routes/route_objects/mod.rs -------------------------------------------------------------------------------- /src/routes/route_objects/new_project_request.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/routes/route_objects/new_project_request.rs -------------------------------------------------------------------------------- /src/routes/route_objects/projects_list_response.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/routes/route_objects/projects_list_response.rs -------------------------------------------------------------------------------- /src/routes/route_objects/registration_request.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/routes/route_objects/registration_request.rs -------------------------------------------------------------------------------- /src/routes/routes_setup.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/routes/routes_setup.rs -------------------------------------------------------------------------------- /src/schema.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thenixan/timesheets-backend/HEAD/src/schema.rs --------------------------------------------------------------------------------