Skip to content

Instantly share code, notes, and snippets.

@maaaato
maaaato / example.js
Created June 19, 2021 15:32
Chain middleware to express.static
const express = require('express');
const app = express();
app.use('/', express.static('public'), function(req, res, next){
res.cookie(
'name1', 'value1',
{
maxAge: 60000,
httpOnly: false
})
next()
@kenmori
kenmori / TypeScriptPractice.md
Last active May 1, 2024 06:02
TypeScript 練習問題集