fix: several nits
This commit is contained in:
parent
d8df6d577e
commit
9485dbbce4
@ -2,7 +2,7 @@
|
|||||||
/woj
|
/woj
|
||||||
|
|
||||||
# runner
|
# runner
|
||||||
resource/runner/.mark.container
|
resource/runner/.mark.image
|
||||||
resource/runner/problem/*
|
resource/runner/problem/*
|
||||||
resource/runner/tmp/*
|
resource/runner/tmp/*
|
||||||
resource/runner/user/*
|
resource/runner/user/*
|
||||||
|
6
.idea/swagger-settings.xml
Normal file
6
.idea/swagger-settings.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="SwaggerSettings">
|
||||||
|
<option name="defaultPreviewType" value="SWAGGER_UI" />
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -10,7 +10,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (s *service) EnsureDeps(force bool) e.Status {
|
func (s *service) EnsureDeps(force bool) e.Status {
|
||||||
mark := filepath.Join(Prefix, ".mark.container")
|
mark := filepath.Join(Prefix, ".mark.image")
|
||||||
|
|
||||||
if force {
|
if force {
|
||||||
_ = os.Remove(mark)
|
_ = os.Remove(mark)
|
||||||
|
@ -79,7 +79,7 @@ func (s *service) initRouters(conf *model.Config, injector *do.Injector) *gin.En
|
|||||||
r.Use(cors.New(cors.Config{
|
r.Use(cors.New(cors.Config{
|
||||||
AllowAllOrigins: true,
|
AllowAllOrigins: true,
|
||||||
AllowMethods: []string{"GET", "POST", "PUT", "OPTIONS"},
|
AllowMethods: []string{"GET", "POST", "PUT", "OPTIONS"},
|
||||||
AllowHeaders: []string{"Origin", "Content-Length", "Content-Type"},
|
AllowHeaders: []string{"Authorization", "Origin", "Content-Length", "Content-Type"},
|
||||||
AllowCredentials: true,
|
AllowCredentials: true,
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user