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:
@@ -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 })
|
||||
|
Reference in New Issue
Block a user