Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any example for API with Authorization? #213

Open
1 task
Antony-Jia opened this issue Jun 4, 2022 · 3 comments
Open
1 task

Any example for API with Authorization? #213

Antony-Jia opened this issue Jun 4, 2022 · 3 comments

Comments

@Antony-Jia
Copy link

Is your feature request related to a problem?

Any example for API with Authorization? Mostly example is too old to run.

What do we currently have to do now?

No response

Describe the solution you'd like

Can Add example with api or vue example for newest release?

Describe alternatives you've considered

No response

Would this be a breaking change ?

  • Yes

Anything else ?

No response

@Antony-Jia Antony-Jia added the enhancement New feature or request label Jun 4, 2022
@girardinsamuel
Copy link
Contributor

Hi ! Did you read this page https://docs.masoniteproject.com/features/api in the documentation ? Does it answer your question ?

@girardinsamuel girardinsamuel added the question Further information is requested label Jun 4, 2022
@Antony-Jia
Copy link
Author

yeah i'd read it and it worked well. But when i integration Authorization, i can't find an complete example and find no where to insert guard to protect api. Just like when i add User Model Authorizes, I need put sometime like 'table.string("role")' into User migrations?

Mationte is good framework, but the example and tutorial is so less or older.

@josephmancuso josephmancuso removed the enhancement New feature or request label Jun 25, 2022
@josephmancuso josephmancuso transferred this issue from MasoniteFramework/masonite Jun 25, 2022
@josephmancuso
Copy link
Member

Need to provide better guard example using the guard middleware

@josephmancuso josephmancuso added documentation and removed question Further information is requested labels Jun 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants