mirror of
https://github.com/maxboeck/webring
synced 2025-02-18 02:38:23 +00:00
8 lines
219 B
JavaScript
8 lines
219 B
JavaScript
import { redirect, getPrevious } from './common/utils'
|
|
|
|
exports.handler = function(event, context, callback) {
|
|
const { host } = event.headers
|
|
const prev = getPrevious(host)
|
|
|
|
callback(null, redirect(prev))
|
|
}
|