chore: add imgur api

This commit is contained in:
xuu
2023-11-07 15:28:09 -07:00
parent 2cbd981902
commit 9a26239aa7
3 changed files with 18 additions and 7 deletions

View File

@@ -3,8 +3,9 @@ export HTTP_LISTEN=:8085
export PASTE_STORE=data/paste/
export ARTIFACT_STORE=data/artifact/
export IMAGE_STORE=data/image/
export CGO_ENABLED=0
SOURCE=$(wildcard v2/*.go) $(wildcard v2/paste/*.go) $(wildcard assets/*.go)
SOURCE=$(wildcard *.go) $(wildcard paste/*.go) $(wildcard assets/*.go)
ASSETS=$(wildcard assets/*) $(wildcard assets/public/*) $(wildcard assets/src/*) $(wildcard assets/src/paste/*)
ASSET_FILE=assets/build/index.html
BINARY=sour.is-paste
@@ -30,7 +31,7 @@ ${ASSET_FILE}: $(ASSETS)
build: $(BINARY)
$(BINARY): $(SOURCE) $(ASSET_FILE)
go build -o $(BINARY) ./v2
go build -o $(BINARY) .
.PHONEY: all clean build run setup
# DO NOT DELETE