Skip to content

refactor and tests#14

Merged
kaplanelad merged 5 commits intomainfrom
improvments-and-tests
Apr 24, 2025
Merged

refactor and tests#14
kaplanelad merged 5 commits intomainfrom
improvments-and-tests

Conversation

@kaplanelad
Copy link
Contributor

@kaplanelad kaplanelad commented Apr 24, 2025

b77596e: refactor and tests for auth.rs

  • refactor: remove Loco framework dependencies from JWT auth
  • Replace Loco's JWTLocation with our own independent enum
  • Add From/Into trait conversions for smooth migration
  • Make the tests easier
  • Adding tests

c7438d8: refactor and tests config.rs + refactor lib.rs

  • Add From/Into trait conversions for smooth migration
  • Adding tests

@kaplanelad kaplanelad changed the title refactor: remove Loco framework dependencies from JWT auth refactor and tests Apr 24, 2025
@kaplanelad
Copy link
Contributor Author

kaplanelad commented Apr 24, 2025

Hey @NexVeridian,
Could you please take a moment to review my changes when you get a chance?

Thanks!

This was linked to issues Apr 24, 2025
Copy link
Contributor

@NexVeridian NexVeridian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look good!

I'll fix the review spots in another pr

This can me merged now!

Comment on lines +126 to +127
paths(album::get_album), // Add album path to OpenAPI spec
components(schemas(album::Album)), // Add album schema
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
paths(album::get_album), // Add album path to OpenAPI spec
components(schemas(album::Album)), // Add album schema

Album schema already collected, so this doesn't do anything

pub fn routes() -> Routes {
Routes::new()
.prefix("api/album")
.add("/get_album", openapi(get(get_album), routes!(get_album)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Album schema collected here

@kaplanelad kaplanelad merged commit 37a3c35 into main Apr 24, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Testing Improve readme.md

2 participants