본문으로 건너뛰기
Public Source Viewer

비나래아카이브 개발자 포털

실제 서비스 구조를 살펴볼 수 있는 공개용 코드 뷰어입니다. 인증, 세션, 외부 연동, 토큰, 관리자 식별 등 보안상 민감한 구현은 파일 단위 또는 줄 단위로 검열됩니다.

Redacted View
src/routes/studio.routes.ts
공개 가능
1 import { Router } from 'express';
2 import { studioProducts } from '../content/studio-products';
3
4 const router = Router();
5 router.get('/studio', (_req, res) => res.redirect('/hinana/studio'));
6 router.get('/hinana/studio', (req, res) => {
7 res.render('hinana/studio', {
8 username: req.session.username || null,
9 theme: req.session.theme || req.cookies.theme || 'light',
10 products: studioProducts
11 });
12 });
13 export default router;
14