mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-03-18 21:50:33 +01:00
Add basic swagger documentation
accessible by running with -swagger. Accessible at /swagger/index.html. Currently doesn't have authentication setup, so no requests will work.
This commit is contained in:
4
Makefile
4
Makefile
@@ -36,6 +36,9 @@ ts-debug:
|
||||
-npx tsc -p ts/ --sourceMap
|
||||
cp -r ts data/static/
|
||||
|
||||
swagger:
|
||||
swag init -g main.go
|
||||
|
||||
version:
|
||||
python3 version.py auto version.go
|
||||
|
||||
@@ -52,6 +55,7 @@ compress:
|
||||
copy:
|
||||
$(info Copying data)
|
||||
cp -r data build/
|
||||
cp docs/swagger.json build/data/static/
|
||||
|
||||
install:
|
||||
cp -r build $(DESTDIR)/jfa-go
|
||||
|
||||
Reference in New Issue
Block a user