1
0
mirror of https://github.com/uetchy/namae.git synced 2025-10-14 23:22:19 +09:00

fix: rename components

This commit is contained in:
2019-08-05 22:59:39 +09:00
parent 26e3249513
commit cd5ed81052
30 changed files with 289 additions and 296 deletions

View File

@@ -1,3 +1,9 @@
const fetch = require('isomorphic-unfetch')
exports.fetch = (url, method = 'HEAD') => {
return fetch(url, { method })
}
exports.send = (res, availability) => {
res.setHeader('Cache-Control', 'maxage=0, s-maxage=3600')
res.json({ availability })