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

Fastify integration #192

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

twss
Copy link

@twss twss commented Apr 12, 2019

Added a strategy for the Fastify web framework. #190

@twss
Copy link
Author

twss commented Apr 12, 2019

The CircleCI failures are down to the 'superagent' version. I get this locally too.

If I downgrade superagent to '4.1.0' the test suite runs.

@twss twss closed this Apr 12, 2019
@twss twss reopened this Apr 12, 2019
@klaaz0r
Copy link

klaaz0r commented Aug 25, 2020

What is the state of this?

@twss
Copy link
Author

twss commented Apr 4, 2022

What is the state of this?

I shall re-visit and see if the problem still exists.


// Set up a front controller, passing it controllers that'll be used
// to handle requests for API resources and for the auto-generated docs.
var Front = new API.httpStrategies.Express(
Copy link
Owner

Choose a reason for hiding this comment

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

should be httpStrategies.Fastify

* can set this option to false to have this code just pass on to Express.
*/
export default class FastifyStrategy extends Base {
constructor(apiController, docsController?, options?: HTTPStrategyOptions) {
Copy link
Owner

Choose a reason for hiding this comment

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

Can we add type annotations here? I.e.,

constructor(apiController: APIController, docsController?: DocsController, options?: HTTPStrategyOptions)

I realize the some of the other strategies doesn't have them, but they really should be there

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.

3 participants