Remove multi-user auth

This commit is contained in:
simon987
2019-03-09 12:44:15 -05:00
parent 04f2ff8900
commit e2ba51b77a
5 changed files with 4 additions and 108 deletions

View File

@@ -78,8 +78,6 @@ func New(db *gorm.DB) *WebApi {
router := fasthttprouter.New()
router.GET("/", LogRequestMiddleware(Index))
router.POST("/client", LogRequestMiddleware(api.CreateClient))
router.POST("/slot", LogRequestMiddleware(api.AllocateUploadSlot))
router.GET("/slot", LogRequestMiddleware(api.ReadUploadSlot))
router.GET("/upload", LogRequestMiddleware(api.Upload))
@@ -90,7 +88,6 @@ func New(db *gorm.DB) *WebApi {
}
api.db = db
db.AutoMigrate(&Client{})
db.AutoMigrate(&UploadSlot{})
api.setupMotd()