-
## TypeDI was not able to inject sercie container in controller
Here is my code
i've tried all method written in documentation but still get error
![image](https://github.com/typestack/routing…
-
version: 1.1.16
----------
通过`koa2 project_name`创建项目后,在app.js中,出现了`app.use(router.routes(), router.allowedMethods());`
app.use()不是只接受第一个参数的吗?
-
```typescript
import * as Router from 'koa-router'
import directoryRouter from 'koa-directory-router'
import * as path from 'path'
const koaRouter = (app: any) => {
const router = new…
-
Hello! Thank you for this package!
I have an issue defining two subpaths for single-wildcarded route prefix:
```typescript
const socialTypeWildGroup = authRouteGroup.newGroup('/:socialType')
…
-
I'm on `koa@2.2.0`, `koa-router@7.2.0` and `koa-better-body@3.0.2`.
Trying to disable multipart for all the routes except `/profilepic`.
```
app.use(body({
multipart: false,
strict: false…
-
```
const koa = require('koa');
const websockify = require('koa-websocket');
const router = require('koa-router');
const app = new koa();
const api = router();
const socket = websockify(app);
…
-
## 问题描述
原本正常的服务迁移到新服务器上后登录时提示:
> Authentication failed – we were unable to sign you in at this time. Please try again.
停用新服务,原有服务重新启用也开始报同样的错误。
两个服务都是同样的方式部署,通过 nginx 将同一个域名指向不同的服务IP。
doc…
-
## The Error
```
$ morphling bash
Container ID is:
584d6828db74
Bashing into Morphling.. Type exit to exit.
root@584d6828db74:/usr/app# pm2 log
[TAILING] Tailing last 15 lines for [all] process…
-
Please add a sentence to the documentation that it needs to be 'used' before the router, thanks!
see:
https://stackoverflow.com/questions/44775299/why-cant-koa-router-be-put-before-koa-cors
Ossip updated
8 months ago
-
i `m set a regexp to router.use(), got a error:
> Error: `(.*)`: `middleware` must be a function, not `object`
> at Layer. (...\node_modules\koa-router\lib\layer.js:38:13)
> at Array.forEach…