diff options
| author | Shulhan <ms@kilabit.info> | 2025-07-31 00:27:20 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2025-07-31 00:27:20 +0700 |
| commit | b6fec02b55a4227b6ecb47c2bc40a5a025af2b8a (patch) | |
| tree | 36956ce1c9c51027f6af3982c3c6add0cc596f80 /server_options.go | |
| parent | 0537c5e094c7b6e5ff376ccdf0dba80adf5c4342 (diff) | |
| download | lilin-b6fec02b55a4227b6ecb47c2bc40a5a025af2b8a.tar.xz | |
all: refactoring web page to render using template
Instead of using HTML and JavaScript, generate the web page using
template.
This minimize number of works we do in the future (creating client
in JavaScript and HTTP APIs).
Diffstat (limited to 'server_options.go')
| -rw-r--r-- | server_options.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server_options.go b/server_options.go index 5197ffd..4a033fc 100644 --- a/server_options.go +++ b/server_options.go @@ -24,6 +24,10 @@ type ServerOptions struct { // The address to listen for HTTP server and APIs. Address string `ini:"server::address"` + + // IsDevelopment run the server in development mode with direct access + // to file system in _www instead of using [embed.FS]. + IsDevelopment bool } // init initialize the server by reading the configuration from |
