Merge branch 'develop' of https://github.com/syuilo/misskey into develop
This commit is contained in:
		
						commit
						e0e006e284
					
				
					 2 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
					@ -46,6 +46,11 @@ router.post('/signin', require('./private/signin').default);
 | 
				
			||||||
router.use(require('./service/github').routes());
 | 
					router.use(require('./service/github').routes());
 | 
				
			||||||
router.use(require('./service/twitter').routes());
 | 
					router.use(require('./service/twitter').routes());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Return 404 for unknown API
 | 
				
			||||||
 | 
					router.all('*', async ctx => {
 | 
				
			||||||
 | 
						ctx.status = 404;
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Register router
 | 
					// Register router
 | 
				
			||||||
app.use(router.routes());
 | 
					app.use(router.routes());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -122,8 +122,7 @@ router.get('/notes/:note', async ctx => {
 | 
				
			||||||
router.get('*', async ctx => {
 | 
					router.get('*', async ctx => {
 | 
				
			||||||
	await send(ctx, `app/base.html`, {
 | 
						await send(ctx, `app/base.html`, {
 | 
				
			||||||
		root: client,
 | 
							root: client,
 | 
				
			||||||
		maxage: ms('3 days'),
 | 
							maxage: ms('5m')
 | 
				
			||||||
		immutable: true
 | 
					 | 
				
			||||||
	});
 | 
						});
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue