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

README.md Example Code Not Functional #98

Closed
torinberger opened this issue Jan 3, 2020 · 1 comment · Fixed by #123
Closed

README.md Example Code Not Functional #98

torinberger opened this issue Jan 3, 2020 · 1 comment · Fixed by #123

Comments

@torinberger
Copy link

I don't know if this is intentional but the example usage in the README.md on the master branch does not make sense, nor does it run.

Sorry if I misunderstood what was meant to be demonstrated.

@LoiKos
Copy link

LoiKos commented Oct 7, 2020

i think it's because at the end it should be :

const app = koa();
app.use(pub.middleware());
app.use(admin.middleware());
app.use(auth.middleware());
app.listen();

// instead of 

const app = koa();
koa.use(pub.middleware());
koa.use(admin.middleware());
koa.use(auth.middleware());
app.listen();

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 a pull request may close this issue.

2 participants