mirror of
https://github.com/php/frankenphp.git
synced 2026-03-24 00:52:11 +01:00
- Fixes nomercure tag build - Conditionally addds the mercure route and mercure project import Fixes https://github.com/php/frankenphp/issues/2209 I am by no means a go developer, feel free to use this or not :) --------- Signed-off-by: tehmaestro <alexnegrila89@gmail.com> Co-authored-by: Alexander Stecher <45872305+AlliBalliBaba@users.noreply.github.com>
19 lines
321 B
Go
19 lines
321 B
Go
//go:build nomercure
|
|
|
|
package caddy
|
|
|
|
import (
|
|
"github.com/caddyserver/caddy/v2"
|
|
"github.com/caddyserver/caddy/v2/modules/caddyhttp"
|
|
)
|
|
|
|
type mercureContext struct {
|
|
}
|
|
|
|
func (f *FrankenPHPModule) assignMercureHub(_ caddy.Context) {
|
|
}
|
|
|
|
func createMercureRoute() (caddyhttp.Route, error) {
|
|
return caddyhttp.Route{}, nil
|
|
}
|