↩ Back
Urlshorter-Workers

$ gh repo view Urlshorter-Workers --readme

Urlshorter-Workers

A simple urlshorter based on Cloudflare worekrs

2Forks 0JavaScriptMIT2022/04/28GitHub ↗

Urlshorter-Workers

A simple urlshorter based on cloudflare workers

Useage

  1. 在Cloudflare创建一个 KVWorkers
  2. 修改Workers的变量, 将KV 命名空间绑定LINKS 指向 1 中创建的KV
  3. index.jsconfig对象的passwd修改为 您的密码
  4. 上传index.js 至您的workers

Api

POST /

请求试例

{ "url": "https://baidu.com", "passwd": "default" }

期待返回

{ "code": 0, "msg": "ok", "short": "abcd" }

参考

comments

$ tail -n 20 comments/urlshorter-workers.log

Comments

// project discussion

加载中...