feature: Adds API refresh support.

This commit is contained in:
greysoh 2024-12-22 11:36:15 -05:00
parent 7d5db06c7b
commit 37d0d41570
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37
3 changed files with 135 additions and 0 deletions

View file

@ -93,6 +93,7 @@ func main() {
// Initialize routes
engine.POST("/api/v1/users/create", users.CreateUser)
engine.POST("/api/v1/users/login", users.LoginUser)
engine.POST("/api/v1/users/refresh", users.RefreshUserToken)
log.Infof("Listening on: %s", listeningAddress)
err = engine.Run(listeningAddress)