Created
December 2, 2020 12:25
-
-
Save zupzup/88cea85e61bb73311d242000fd2c73e5 to your computer and use it in GitHub Desktop.
Timeular Webhooks Handlers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async fn started_tracking_handler(body: TrackingStartedPayload) -> WebResult<impl Reply> { | |
println!("tracking was started with data: {:?}", body); | |
Ok("OK") | |
} | |
async fn stopped_tracking_handler(body: TrackingStoppedPayload) -> WebResult<impl Reply> { | |
println!("time entry was created with data: {:?}", body); | |
Ok("OK") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment