dchadwick/web/modules/custom/ufc/ufc.routing.yml

57 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2024-04-09 01:47:04 +00:00
## These are routes that serve rendered HTML for ingestion.
2024-04-09 12:08:12 -07:00
ufc.recent_fights:
path: '/api/v1/recent-fights'
defaults:
_controller: '\Drupal\ufc\Controller\RecentFightsController::getRecentFights'
_title: 'Recent Fights Endpoint'
requirements:
_permission: 'access content'
2025-08-31 21:26:31 -04:00
2024-04-09 01:47:04 +00:00
ufc.fighters_for_dcjs:
path: '/dcjs/all-fighters'
2024-03-13 15:48:45 +00:00
defaults:
2024-04-09 01:47:04 +00:00
_controller: '\Drupal\ufc\Controller\DcjsRouteController::allFightersForDcjs'
_title: "All Fighters Generated by DCJS"
2024-03-13 15:48:45 +00:00
requirements:
2024-04-09 01:47:04 +00:00
_permission: 'access content'
2025-08-31 21:26:31 -04:00
2024-04-09 01:47:04 +00:00
ufc.dcjs_fighter:
path: '/dcjs/fighter/{fighter_node}'
defaults:
_controller: '\Drupal\ufc\Controller\DcjsRouteController::fighterForDcjs'
_title: "Fighter Rendered by DCJS"
requirements:
_permission: 'access content'
options:
parameters:
fighter_node:
type: entity:node
# AI PREDICTOR ROUTES
ufc.fight_training_data:
path: '/api/v1/training-data'
defaults:
_controller: '\Drupal\ufc\Controller\FightTrainingController::generateTrainingData'
_title: "Training Data Generator"
requirements:
_permission: 'access content'
ufc.fight_data:
path: '/api/v1/fight-data/{fight}'
defaults:
_controller: '\Drupal\ufc\Controller\FightTrainingController::getFightData'
_title: "Get Fight Data"
requirements:
_permission: 'access content'
options:
parameters:
fight:
type: entity:node
2025-08-31 21:26:31 -04:00
2024-04-09 01:47:04 +00:00
ufc.network:
path: '/api/v1/network'
defaults:
_controller: '\Drupal\ufc\Controller\FightTrainingController::getNeuralNetwork'
_title: 'Get Neural network'
requirements:
_permission: 'access content'