mirror of
https://github.com/wisplite/raster.git
synced 2026-05-01 06:32:44 -05:00
add basic auth with uuid-based access tokens
This commit is contained in:
@@ -20,6 +20,8 @@ func Init() bool {
|
||||
// Run migrations
|
||||
err = database.AutoMigrate(
|
||||
&models.Album{},
|
||||
&models.User{},
|
||||
&models.AccessToken{},
|
||||
)
|
||||
if err != nil {
|
||||
log.Fatal("failed to migrate database: ", err)
|
||||
|
||||
Reference in New Issue
Block a user