Move swagger+openapi setup to routes and decouple from run

This commit is contained in:
Dr. Stefan Schimanski 2016-09-30 10:40:34 +02:00
parent 9210b3b6ca
commit a443d8d4e6
1 changed files with 1 additions and 1 deletions

View File

@ -105,6 +105,6 @@ func Run(serverOptions *genericoptions.ServerRunOptions) error {
if err := s.InstallAPIGroup(&apiGroupInfo); err != nil {
return fmt.Errorf("Error in installing API: %v", err)
}
s.Run()
s.PrepareRun().Run()
return nil
}