mirror of
https://codeberg.org/vlw/vlw.se.git
synced 2025-09-13 21:13:40 +02:00
The PR is a huge refactor of all Reflect and Vegvisir code. I've merged the API and "Front-end" codebases together into the same root, this will allow for both Reflect and Vegvisir to use the same resources. Not only that, but I've also added proper database modeling with actual OOP inheritance for database tables. Reviewed-on: https://codeberg.org/vlw/vlw.se/pulls/23
27 lines
No EOL
953 B
PHP
27 lines
No EOL
953 B
PHP
<?php
|
|
|
|
namespace VLW\API;
|
|
|
|
use vlw\xEnum;
|
|
|
|
// Enum of all available VLW endpoints grouped by category
|
|
enum Endpoints: string {
|
|
use xEnum;
|
|
|
|
case WORK = "/work";
|
|
case SEARCH = "/search";
|
|
case MESSAGES = "/messages";
|
|
case WORK_TAGS = "/work/tags";
|
|
case WORK_ACTIONS = "/work/actions";
|
|
case WORK_TIMELINE = "/work/timeline";
|
|
case BATTLESTATION = "/battlestation";
|
|
case ABOUT_LANGUAGES = "/about/languages";
|
|
case BATTLESTATION_MB = "/battlestation/mb";
|
|
case BATTLESTATION_CPU = "/battlestation/cpu";
|
|
case BATTLESTATION_GPU = "/battlestation/gpu";
|
|
case BATTLESTATION_PSU = "/battlestation/psu";
|
|
case BATTLESTATION_DRAM = "/battlestation/dram";
|
|
case BATTLESTATION_STORAGE = "/battlestation/storage";
|
|
case BATTLESTATION_COOLERS = "/battlestation/coolers";
|
|
case BATTLESTATION_CHASSIS = "/battlestation/chassis";
|
|
} |