Ktor service for adding and resetting minutes.
git clone https://github.com/Slenkis/scythe.git
cd scythe/
chmod +x gradlew
./gradlew shadowJar
java -jar build/libs/scythe.jar
url: localhost:8080
username: admin
password: 12345
java -jar build/libs/scythe.jar -config="/path/to/cofig"
- Jackson
- FreeMarker
- Basic authentication
- Auto Reload
- Heroku deploy (Procfile, Working example)
- Fat JAR (ShadowJar)
/
- GET: return HTML page for control minutes
/temp
- GET: return JSON with total minutes
/temp
- PUT: adds minutes from JSON body to counter; return 200
or 406
or 415
code
/temp
- POST: reset counter to 0 minutes; return 200
code
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.