Skip to content

HTTP interface written in Go to create and delete symbolic links

License

Notifications You must be signed in to change notification settings

ecomclub/symlinks-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

symlinks-api

HTTP interface written in Go to create and delete symbolic links

Technology stack

  • Go 1.9.x

Setting up

For security, we recommend to download and install the app as root, and let the files owned by root:root as default.

sudo git clone https://github.com/ecomclub/symlinks-api.git
cd symlinks-api
sudo go build main.go

Start application with CLI arguments:

  • Root directory to static files
  • HTTP/TCP port
  • X-Authentication header password
  • Optional log file path

Example:

./main /var/www :3000 xyz /var/log/app.log &
curl -H 'X-Authentication: xyz' 'http://127.0.0.1:3000/create?newname=foo&oldname=bar'
curl -H 'X-Authentication: xyz' 'http://127.0.0.1:3000/delete?newname=foo'

About

HTTP interface written in Go to create and delete symbolic links

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages