Skip to content

Commit

Permalink
Merge pull request #15 from k-avy/kavya/api/candidate
Browse files Browse the repository at this point in the history
feat: added obligation endpoints
  • Loading branch information
GMishx authored Dec 4, 2023
2 parents 7b973d0 + 9fad40c commit 01f27fa
Show file tree
Hide file tree
Showing 5 changed files with 420 additions and 17 deletions.
9 changes: 9 additions & 0 deletions cmd/laas/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ func main() {
if err := db.DB.AutoMigrate(&models.ChangeLog{}); err != nil {
log.Fatalf("Failed to automigrate database: %v", err)
}

if err := db.DB.AutoMigrate(&models.Obligation{}); err != nil {
log.Fatalf("Failed to automigrate database: %v", err)
}

if err := db.DB.AutoMigrate(&models.ObligationMap{}); err != nil {
log.Fatalf("Failed to automigrate database: %v", err)
}

db.Populatedb(*populatedb, *datafile)

r := api.Router()
Expand Down
Loading

0 comments on commit 01f27fa

Please sign in to comment.