26 lines
645 B
GLSL
Executable File
26 lines
645 B
GLSL
Executable File
#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals -no-skip-unused run
|
|
|
|
import freeflowuniverse.herolib.hero.heromodels.rpc
|
|
import freeflowuniverse.herolib.hero.heromodels
|
|
import time
|
|
|
|
fn main() {
|
|
// Start the server in a background thread with authentication disabled for testing
|
|
spawn fn () {
|
|
rpc.start(
|
|
port: 8086
|
|
auth_enabled: false // Disable auth for testing
|
|
cors_enabled: true
|
|
reset: true
|
|
allowed_origins: [
|
|
'http://localhost:5173',
|
|
]
|
|
) or { panic('Failed to start HeroModels server: ${err}') }
|
|
}()
|
|
|
|
// Keep the main thread alive
|
|
for {
|
|
time.sleep(time.second)
|
|
}
|
|
}
|