mirror of
https://github.com/ChuckNorrison/LightningTipBot.git
synced 2026-08-13 12:33:14 +02:00
14 lines
293 B
Go
14 lines
293 B
Go
package admin
|
|
|
|
import (
|
|
"github.com/LightningTipBot/LightningTipBot/internal/dalle"
|
|
"net/http"
|
|
)
|
|
|
|
func (s Service) DisableDalle(w http.ResponseWriter, r *http.Request) {
|
|
dalle.Enabled = false
|
|
}
|
|
|
|
func (s Service) EnableDalle(w http.ResponseWriter, r *http.Request) {
|
|
dalle.Enabled = true
|
|
}
|