Skip to content

1Charlo/Url-Shorten-Worker

This branch is 12 commits ahead of, 1 commit behind xyTom/Url-Shorten-Worker:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Oct 1, 2023
e7f8664 · Oct 1, 2023

History

41 Commits
Jun 2, 2023
Oct 1, 2023
Jul 7, 2023
Jul 7, 2023
Jul 7, 2023
Oct 1, 2023
Jul 8, 2023
Jul 7, 2023
Jul 7, 2023

Repository files navigation

感谢

Base on xyTom/Url-Shorten-Worker

Url-Shorten-Worker

A URL Shortener created using Cloudflare Worker

API

API Documentation (API文档)

Getting start

去Workers KV中创建一个命名空间

Go to Workers KV and create a namespace.

去Worker的Settings选选项卡中绑定KV Namespace

Bind an instance of a KV Namespace to access its data in a Worker.

其中Variable name填写LINKS, KV namespace 选择你刚刚创建的命名空间

Where Variable name should set as LINKS and KV namespace is the namespace you just created in the first step.

复制本项目中的index.js的代码到Cloudflare Worker

Copy the index.js code from this project to Cloudflare Worker.

点击Save and Deploy

Click Save and Deploy

Demo

https://lnks.eu.org/

Note: Because someone abuse this demo website, all the generated link will automatically expired after 24 hours. For long-term use, please deploy your own.

注意:所有由Demo网站生成的链接24小时后会自动失效,如需长期使用请自行搭建。

About

A URL Shortener created using Cloudflare worker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 55.2%
  • JavaScript 44.8%